Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Hang in E01 due to zpty on OpenBSD
- X-seq: zsh-workers 49978
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Hang in E01 due to zpty on OpenBSD
- Date: Sun, 3 Apr 2022 18:04:30 -0700
- Archived-at: <https://zsh.org/workers/49978>
- In-reply-to: <YkoUwETgsrrqDeZN@CptOrmolo.darkstar>
- List-id: <zsh-workers.zsh.org>
- References: <YkoUwETgsrrqDeZN@CptOrmolo.darkstar>
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