From 3cf11a4b3388982a0b4946953c1500a3c583074d Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 5 Mar 1996 17:15:44 +0000 Subject: (__select): Don't fault when some fdmask is 0. --- sysdeps/mach/hurd/select.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/mach/hurd/select.c b/sysdeps/mach/hurd/select.c index 001a28b..d170287 100644 --- a/sysdeps/mach/hurd/select.c +++ b/sysdeps/mach/hurd/select.c @@ -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); } -- cgit v1.1