fifo: Restore the old semantics of select(2)/poll(2) for reading
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Sep 2011 14:16:13 +0000 (22:16 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Sep 2011 14:22:24 +0000 (22:22 +0800)
commit010f86dc1259be3b29303bfc336532138acd077d
tree7402a3cf06cbb2a701ce647dcc527fb5793aaa46
parent31da5e4d0cbd142b2ea4e6281890ee475f1f9711
fifo: Restore the old semantics of select(2)/poll(2) for reading

select(2)/poll(2) for reading on a fifo should not return "ready
to read" if all of the writers have closed the fifo.

DragonFly-Bug: http://bugs.dragonflybsd.org/issue2028
sys/vfs/fifofs/fifo_vnops.c