summaryrefslogtreecommitdiff
path: root/hurd/hurdselect.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-11 23:26:49 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-11 23:26:49 +0200
commit099f8d2b7ecedc4f6fc895d2c35912f995289c24 (patch)
tree00bc3a4a24131d9bfec7a8ae09660205bd97c289 /hurd/hurdselect.c
parent32516160f64fab46249de1aa9832d5e8b0dceb4d (diff)
Fix spurious port destroy on io_select returning an error
Diffstat (limited to 'hurd/hurdselect.c')
-rw-r--r--hurd/hurdselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
index cc697564ff..c86fdbcb16 100644
--- a/hurd/hurdselect.c
+++ b/hurd/hurdselect.c
@@ -491,7 +491,7 @@ _hurd_select (int nfds,
if (firstfd != -1)
for (i = firstfd; i <= lastfd; ++i)
- if (d[i].type & ~SELECT_ERROR)
+ if (d[i].type & ~(SELECT_ERROR | SELECT_RETURNED))
__mach_port_destroy (__mach_task_self (), d[i].reply_port);
if (firstfd == -1 || (firstfd != lastfd && portset != MACH_PORT_NULL))
/* Destroy PORTSET, but only if it's not actually the reply port for a