summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-06-12 02:17:18 +0000
committerjb <jb@FreeBSD.org>1998-06-12 02:17:18 +0000
commit843533595231850b94411cef5d31474ce1aa56fc (patch)
tree5fbf340153a3a0e3c5a0f1b8318c779fb884d2bc /lib
parent7fe2cc176d527bff195be9420e9c43dc43e53fd1 (diff)
downloadFreeBSD-src-843533595231850b94411cef5d31474ce1aa56fc.zip
FreeBSD-src-843533595231850b94411cef5d31474ce1aa56fc.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/uthread/uthread_select.c2
-rw-r--r--lib/libkse/thread/thr_select.c2
-rw-r--r--lib/libpthread/thread/thr_select.c2
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 0211883..d6202db 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 0211883..d6202db 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 0211883..d6202db 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) &&
OpenPOWER on IntegriCloud