summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_select.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-06-12 02:17:18 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-06-12 02:17:18 +0000
commit06ca87e9f74642e5d48d41c291b1093895b8a11b (patch)
treed37bf40499df399b317e1a84617c7052751132eb /lib/libpthread/thread/thr_select.c
parentbab04eb8165bc6b49ecc38ce9751d5afdc4fd184 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_select.c')
-rw-r--r--lib/libpthread/thread/thr_select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_select.c b/lib/libpthread/thread/thr_select.c
index 0211883cc1b2..d6202db01406 100644
--- a/lib/libpthread/thread/thr_select.c
+++ b/lib/libpthread/thread/thr_select.c
@@ -145,7 +145,7 @@ select(int numfds, fd_set * readfds, fd_set * writefds,
if (FD_ISSET(i, &write_locks))
_FD_UNLOCK(i, FD_WRITE);
- if (ret > 0) {
+ if (ret >= 0) {
if (readfds != NULL) {
for (i = 0; i < numfds; i++) {
if (FD_ISSET(i, readfds) &&