https://bugzilla.mindrot.org/show_bug.cgi?id=3416

--- Comment #6 from Darren Tucker <dtuc...@dtucker.net> ---
(In reply to Darren Tucker from comment #5)
[...]
> > Also maybe both POLLIN and POLLOUT cases should check POLLERR in
> > revents. I saw this in bug #3405
> 
> Good point, I'll do that as a separate patch.

I take that back :-)

Same thing, we are not checking the return from a poll(), we are
checking the return from a select() and mapping it to what would be
returned by poll().  Conditions that would cause poll() to set POLLERR
will cause select to set the bit in readfds or writefds (likely both),
but we can't tell that from what select returns.  We won't see there's
an error condition until the calling code attempts a read or write and
gets a 0 or -1 returned.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to