poll needs similar treatment as select recently gained in order to not
authoranton <anton@openbsd.org>
Fri, 29 Oct 2021 15:52:44 +0000 (15:52 +0000)
committeranton <anton@openbsd.org>
Fri, 29 Oct 2021 15:52:44 +0000 (15:52 +0000)
commitfdbd9592128c339e250bf4fe1f34ceadf7be2270
treee0f1a30ec569b6ed754a89ce70270ce8af94f4e9
parent57aafeb662d6fa7283aea71b4c3ea3ddb16bbd78
poll needs similar treatment as select recently gained in order to not
mask failed kqueue_register() attempts which in turn causes the thread to
end up sleeping as opposed of propagating the failure to user space.

Regression introduced in the recent switch to implement poll on top of
kqueue.

Thanks to Larry Hynes <larry at larryhynes dot com> for reporting and
Leah Neukirchen <leah at vuxu dot org> for providing a reproducer; which
also already made its way into regress.

ok mpi@
sys/kern/sys_generic.c