]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When poll(2)'ing for readability or writability of a file descriptor
authorArchie Cobbs <archie@FreeBSD.org>
Thu, 29 Aug 2002 00:44:11 +0000 (00:44 +0000)
committerArchie Cobbs <archie@FreeBSD.org>
Thu, 29 Aug 2002 00:44:11 +0000 (00:44 +0000)
commitccde72a411271ea7a386f2b5e1ad1f78bc1b1c96
tree469c29a146f1d99cc3c272852cc2252ff3475d5f
parentbdb9312632114a6ea37a58f418ee609630dcc1dd
When poll(2)'ing for readability or writability of a file descriptor
on behalf of a thread, we should check the POLLERR, POLLHUP, and
POLLNVAL flags as well to wake up the thread in these cases.

Suggested by: deischen
MFC after: 3 days
lib/libc_r/uthread/uthread_kern.c
lib/libkse/thread/thr_kern.c
lib/libpthread/thread/thr_kern.c