summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-13 00:25:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-13 00:25:38 +0100
commit7bc5373f1b20b0f92b59e0bde8871fbac8caa196 (patch)
tree0816c672ff5690c1825aa53ba53b1a6d8519cff1 /hurd
parent4a7fa7e43dfa3910664c02af588955137524c6ea (diff)
allow poll() array bigger than FD_SETSIZE
* hurd/hurdselect.c (_hurd_select): In the poll case, do not return EINVAL when nfds is greater than FD_SETSIZE.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
index 21ba5f42a4..b4d1cd8281 100644
--- a/hurd/hurdselect.c
+++ b/hurd/hurdselect.c
@@ -67,7 +67,7 @@ _hurd_select (int nfds,
assert (sizeof (union typeword) == sizeof (mach_msg_type_t));
assert (sizeof (uint32_t) == sizeof (mach_msg_type_t));
- if (nfds < 0 || nfds > FD_SETSIZE)
+ if (nfds < 0 || (!pollfds && nfds > FD_SETSIZE))
{
errno = EINVAL;
return -1;