Test that poll(2) returns POLLNVAL for an already closed fd.
authormpi <mpi@openbsd.org>
Fri, 29 Oct 2021 13:13:04 +0000 (13:13 +0000)
committermpi <mpi@openbsd.org>
Fri, 29 Oct 2021 13:13:04 +0000 (13:13 +0000)
commit081b6b34aa80d0f028d155d4b04c2673846b9a8b
tree3dd5f705bcd9a58f9c60be8964750fdeca47dac8
parent607be1c9722d954d6209da9e4bb2098e74e7fbb6
Test that poll(2) returns POLLNVAL for an already closed fd.

poll(2) rewrite on top of kqueue is currently blocking instead of
returning.  Regression reported by Larry Hynes with a reproducer
from Leah Neukirchen, thanks a lot!
regress/sys/kern/poll/Makefile [new file with mode: 0644]
regress/sys/kern/poll/pollnval.c [new file with mode: 0644]