poll()-ing a pipe descriptor, watching for POLLHUP

Vlad Galu dudu at dudu.ro
Wed Jun 3 12:15:56 UTC 2009


Please take a look at the attached code. Shouldn't poll() get a
POLLHUP event when the child process exits, closing the write end of
the pipe?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: poll.cpp
Type: application/octet-stream
Size: 1737 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090603/3d24343e/poll.obj

More information about the freebsd-stable mailing list