path: root/src/select
diff options
authorRich Felker <>2012-08-09 22:52:13 -0400
committerRich Felker <>2012-08-09 22:52:13 -0400
commit2f437040e7911d9bef239588ea7ed6f4b9102922 (patch)
treecfb4950352818b7a3ed2f5be9d9425bbb0b7cd3a /src/select
parent83b42d94bd1009da6a95052d9ef0edeb1c73c8e4 (diff)
fix (hopefully) all hard-coded 8's for kernel sigset_t size
some minor changes to how hard-coded sets for thread-related purposes are handled were also needed, since the old object sizes were not necessarily sufficient. things have gotten a bit ugly in this area, and i think a cleanup is in order at some point, but for now the goal is just to get the code working on all supported archs including mips, which was badly broken by linux rejecting syscalls with the wrong sigset_t size.
Diffstat (limited to 'src/select')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select/pselect.c b/src/select/pselect.c
index f28887ff..48fcefed 100644
--- a/src/select/pselect.c
+++ b/src/select/pselect.c
@@ -4,7 +4,7 @@
int pselect(int n, fd_set *rfds, fd_set *wfds, fd_set *efds, const struct timespec *ts, const sigset_t *mask)
- long data[2] = { (long)mask, 8 };
+ long data[2] = { (long)mask, __SYSCALL_SSLEN };
struct timespec ts_tmp;
if (ts) ts_tmp = *ts;
return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, ts ? &ts_tmp : 0, data);