Re: Is POLLHUP an input-only or bidirectional condition?

Richard Kettlewell
2004-04-03T12:19:36Z

Jamie Lokier <jamie@shareable.org> writes:
> Perhaps that indicates some confusion over what POLLHUP is supposed to
> mean, and when it should be set by devices and/or sockets: is it for
> input hangup conditions that allow further output, or for total hangup
> conditions where input and output are both guaranteed to fail?

I spent some time a while ago looking into how various platforms treat
POLLHUP. It's rather random...
http://www.greenend.org.uk/rjk/2001/06/poll.html

--