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:
parent
bab04eb816
commit
06ca87e9f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36904
@ -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) &&
|
||||
|
@ -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) &&
|
||||
|
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user