From 06ca87e9f74642e5d48d41c291b1093895b8a11b Mon Sep 17 00:00:00 2001 From: John Birrell Date: Fri, 12 Jun 1998 02:17:18 +0000 Subject: [PATCH] Update the caller's descriptor masks even if there are none ready for I/O for those applications that don't believe the return value of zero as meaning that THERE ARE *NO* DESCRIPTORS READY. --- lib/libc_r/uthread/uthread_select.c | 2 +- lib/libkse/thread/thr_select.c | 2 +- lib/libpthread/thread/thr_select.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc_r/uthread/uthread_select.c b/lib/libc_r/uthread/uthread_select.c index 0211883cc1b..d6202db0140 100644 --- a/lib/libc_r/uthread/uthread_select.c +++ b/lib/libc_r/uthread/uthread_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) && diff --git a/lib/libkse/thread/thr_select.c b/lib/libkse/thread/thr_select.c index 0211883cc1b..d6202db0140 100644 --- a/lib/libkse/thread/thr_select.c +++ b/lib/libkse/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) && diff --git a/lib/libpthread/thread/thr_select.c b/lib/libpthread/thread/thr_select.c index 0211883cc1b..d6202db0140 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) &&