diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-05-10 22:35:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-05-10 22:35:40 +0000 |
commit | 6b2ba645c821fca1defaa24e42655cfaeed52507 (patch) | |
tree | 77efdee9c2ebd1e4c3577a2bebed73b666bf10ec /usr.bin/systat | |
parent | 27654dcbfea3fbbda292535b1704b0f40400d6ec (diff) |
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@
Diffstat (limited to 'usr.bin/systat')
0 files changed, 0 insertions, 0 deletions