Reduce code duplication in pipe event filters
authorvisa <visa@openbsd.org>
Sat, 12 Feb 2022 14:07:26 +0000 (14:07 +0000)
committervisa <visa@openbsd.org>
Sat, 12 Feb 2022 14:07:26 +0000 (14:07 +0000)
commit3437c2ff3fd77b7b464c560a8308b9e7fa41d564
tree3c70bc508b2c1c03b20d1eaee0d8a0033d1403f1
parentc6a90018995ce7e8c4abeb8d9d90c853722e17e5
Reduce code duplication in pipe event filters

Use the f_event callback for checking event state within the pipe
event filters. This enables the same f_modify and f_process functions
to handle the different filter types.

OK anton@
sys/kern/sys_pipe.c