mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
(__select): Don't fault when some fdmask is 0.
This commit is contained in:
parent
d43e047895
commit
3cf11a4b33
@ -284,15 +284,15 @@ DEFUN(__select, (nfds, readfds, writefds, exceptfds, timeout),
|
||||
|
||||
if (type & SELECT_READ)
|
||||
got++;
|
||||
else
|
||||
else if (readfds)
|
||||
FD_CLR (i, readfds);
|
||||
if (type & SELECT_WRITE)
|
||||
got++;
|
||||
else
|
||||
else if (writefds)
|
||||
FD_CLR (i, writefds);
|
||||
if (type & SELECT_URG)
|
||||
got++;
|
||||
else
|
||||
else if (exceptfds)
|
||||
FD_CLR (i, exceptfds);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user