CVSROOT:        /cvs
Module name:    src
Changes by:     mill...@cvs.openbsd.org 2015/05/10 16:35:39

Modified files:
        sys/kern       : sys_generic.c 
        sys/sys        : poll.h 
        sys/miscfs/fifofs: fifo_vnops.c 

Log message:
Set POLLHUP even if no valid events were specified as per POSIX.
Since we use the poll backend for select(2), care must be taken not
to set the fd's bit in writefds in this case.  A kernel-only flag,
POLLNOHUP, is used by selscan() to tell the poll backend not to
return POLLHUP on EOF.  This is currently only used by fifo_poll().
The fifofs regress now passes.  OK guenther@

Reply via email to