diff options
-rw-r--r-- | hurd/hurdselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c index dcda71b63f..9004a9050c 100644 --- a/hurd/hurdselect.c +++ b/hurd/hurdselect.c @@ -288,7 +288,7 @@ _hurd_select (int nfds, portset = MACH_PORT_NULL; for (i = firstfd; i <= lastfd; ++i) - if (d[i].type & SELECT_ERROR) + if (!(d[i].type & ~SELECT_ERROR)) d[i].reply_port = MACH_PORT_NULL; else { |