Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: read_poll Re: PATCH: Zpty cleanup (merge 13061 with 13116)
- X-seq: zsh-workers 13148
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: read_poll Re: PATCH: Zpty cleanup (merge 13061 with 13116)
- Date: Thu, 9 Nov 2000 09:09:26 +0100 (MET)
- In-reply-to: "Bart Schaefer"'s message of Wed, 8 Nov 2000 15:58:13 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Nov 8, 11:20am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> }
> } > However, that does not mean that the rest of the tests should be skipped
> } > when select() returns 0. A return of 0 means the select() timed out,
> } > which (apparently) might happen under Cygwin even if there actually are
> } > characters available to be read. Peter/Andrej, is that the case?
> }
> } I don't know about Cygwin, but that blocking read (line 1381) is
> } exactly the test I wanted to avoid.
>
> The read on line 1381 is *non-*blocking. Since polltty is now always zero
> when called from zpty, the setblock_fd() call is made before the read() is
> attempted. That was the patch I first committed which started me down the
> road of merging in your changes.
Ouch. Right, hadn't thought about the change to polltty. Sorry.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author