diff options
author | jb <jb@FreeBSD.org> | 1998-06-12 02:17:18 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-06-12 02:17:18 +0000 |
commit | 843533595231850b94411cef5d31474ce1aa56fc (patch) | |
tree | 5fbf340153a3a0e3c5a0f1b8318c779fb884d2bc /lib/libc_r | |
parent | 7fe2cc176d527bff195be9420e9c43dc43e53fd1 (diff) | |
download | FreeBSD-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/libc_r')
-rw-r--r-- | lib/libc_r/uthread/uthread_select.c | 2 |
1 files changed, 1 insertions, 1 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) && |