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.
This commit is contained in:
John Birrell 1998-06-12 02:17:18 +00:00
parent bab04eb816
commit 06ca87e9f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36904
3 changed files with 3 additions and 3 deletions

View File

@ -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) &&

View File

@ -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) &&

View File

@ -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) &&