Make EVFILT_EXCEPT handling separate from the read filter.
authormpi <mpi@openbsd.org>
Fri, 22 Oct 2021 15:11:32 +0000 (15:11 +0000)
committermpi <mpi@openbsd.org>
Fri, 22 Oct 2021 15:11:32 +0000 (15:11 +0000)
commit0650ab1ab46675585b0d7493c0601701a8c8dd3f
treedcc8d5bf8d9def5b4558dfb1bf2aca4e462cb52c
parentcf9537f6b724ede0227e0e26a62491700c9cfa4c
Make EVFILT_EXCEPT handling separate from the read filter.

This is a change of behavior and events wont be generated if there
is something to read on the fd.  Only EV_EOF or NOTE_OOB will now
be reported.

While here a new filter for FIFOs supporting EV_EOF and __EV_HUP.

ok visa@
sys/kern/tty_pty.c
sys/kern/uipc_socket.c
sys/miscfs/fifofs/fifo_vnops.c