On Tue, 07 Dec 2021 07:06:17 -0700, Visa Hankala wrote:

> CVSROOT:      /cvs
> Module name:  src
> Changes by:   [email protected]    2021/12/07 07:06:16
>
> Modified files:
>       sys/kern       : sys_pipe.c 
>
> Log message:
> 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.

But the old exceptfds behaviour is not actually correct, select
should not be setting exceptfds on, e.g., broken pipe.

 - todd

Reply via email to