Adjust pty case for kqueue-based poll(2)
authorvisa <visa@openbsd.org>
Sat, 25 Dec 2021 11:27:19 +0000 (11:27 +0000)
committervisa <visa@openbsd.org>
Sat, 25 Dec 2021 11:27:19 +0000 (11:27 +0000)
commit1f4e9e88ac79782db42ee32d9a37623f1a181512
tree992b94da304a4487aac42da9364ea96b11257c0c
parentce1591e9cb9181593e791fd1aafd256351177d94
Adjust pty case for kqueue-based poll(2)

Unlike the old code, kqueue-based poll(2) sets POLLIN when the other
end of a pty has been closed. Calling read(2) on such a pty returns
zero anyway. FreeBSD sets POLLIN too.
regress/sys/kern/poll/poll_iocond.c