[Bug 203162] when close(fd) on a fifo fails with EINTR, the file descriptor is not really closed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Sep 17 01:10:59 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203162
Konstantin Belousov <kib at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kib at FreeBSD.org
--- Comment #4 from Konstantin Belousov <kib at FreeBSD.org> ---
Created attachment 161136
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=161136&action=edit
A bit more fairness into the signal interruption of fifo open
The patch would prefer to return success over the EINTR when signal is
delivered while other end of fifo becomes ready simultaneously.
Note that the patch still does not fix the fundamental underground issue of the
troubles, which is in the test structure itself. If child reader manages to
close fifo before the parent writer sleeping in open has a chance to run,
parent would deadlock, since nothing else would open the fifo for read.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list