Add EVFILT_EXCEPT filter for pipes
authorvisa <visa@openbsd.org>
Tue, 7 Dec 2021 14:06:16 +0000 (14:06 +0000)
committervisa <visa@openbsd.org>
Tue, 7 Dec 2021 14:06:16 +0000 (14:06 +0000)
commit029b91ee4a71acb8fc1e54fe1ef0711437738fe6
tree31860566eec76c7a5d10adf9acf4bc42c20f94b0
parent1ca09e6115f8c42f664566d779605ab0aeb1c469
Add EVFILT_EXCEPT filter for pipes

The kqueue-based select(2) needs the filter to replicate the old
exceptfds behaviour. The upcoming new poll(2) code will use the filter
for POLLHUP condition checking when the events bitmap is clear of
read/write events.

OK anton@
sys/kern/sys_pipe.c