poll()-ing a pipe descriptor, watching for POLLHUP
kostikbel at gmail.com
Wed Jun 3 14:30:57 UTC 2009
On Wed, Jun 03, 2009 at 04:10:34PM +0300, Vlad Galu wrote:
> Hm, I was having an issue with an internal piece of software, but
> never checked what kind of pipe caused the problem. Turns out it was a
> FIFO, and I got bitten by the same bug described here:
> The problem is that the reader process isn't notified when the writer
> process exits or closes the FIFO fd...
So you did found the relevant PR with long audit trail and patches
attached. You obviously should contact the author of the patches,
Oliver Fromme, who is FreeBSD committer for some time (CCed).
I agree that the thing shall be fixed finally. Skimming over the
patches in kern/94772, I have some doubts about removal of
POLLINIGNEOF flag. The reason is that we are generally do not
remove exposed user interfaces.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090603/8adf0343/attachment.pgp
More information about the freebsd-stable