Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Hang in E01 due to zpty on OpenBSD



On Sun, Apr 3, 2022 at 2:43 PM Matthew Martin <phy1729@xxxxxxxxx> wrote:
>
> I assume the EPERM on open is an OpenBSD bug, but zsh should probably
> not hang either.

I'm not sure what could be done about this from the zsh code.  The
only reasonable assumption for the pty master-side reader is that the
slave-slide will become closed upon an error and the read will fail.
Using a non-blocking read would defeat the purpose.

I suppose we could skip the test on OpenBSD, but there are a bunch of
later tests that rely on zpty functioning.




Messages sorted by: Reverse Date, Date, Thread, Author