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

Re: It seems that I find a zle -F full CPU bug



On Thu, Feb 20, 2014 at 12:47:18PM -0800, Bart Schaefer wrote:
> On Thursday, February 20, 2014, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> wrote:

> However ... and again I may be reading this wrong ... I think the outer
> test for whether to call the handler at all will skip the handlers for FDs
> with error states.  In the HAVE_POLL branch, for example, it first looks
> for the POLLIN flags but not for any error flags?  So it will never reach
> the set of tests that examine POLLNVAL et al.?

Oh yes, the handler won't get POLLNVAL, but it does get POLLHUP, which
comes along with POLLIN when the peer closes the other end of a pipe (or
a socket connection I think).

-- 
Best regards,
lilydjwg



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