aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-07 22:07:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-07 22:07:38 +0100
commitd5131d3c1e4b71b5ce3bcd629ef019812b1412cf (patch)
treeda73ee19beaa35ca2a583df7bcc06a901cf96bbe /hurd
parent5d2556c4fa4629b1c3adf59f29c699f00d4122ea (diff)
downloadglibc-d5131d3c1e4b71b5ce3bcd629ef019812b1412cf.zip
glibc-d5131d3c1e4b71b5ce3bcd629ef019812b1412cf.tar.gz
glibc-d5131d3c1e4b71b5ce3bcd629ef019812b1412cf.tar.bz2
hurd: allow poll() array bigger 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 279ee5e..2996be2 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 == NULL && nfds > FD_SETSIZE))
{
errno = EINVAL;
return -1;