From 2f437040e7911d9bef239588ea7ed6f4b9102922 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 9 Aug 2012 22:52:13 -0400 Subject: 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. --- src/time/timer_create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/time/timer_create.c') diff --git a/src/time/timer_create.c b/src/time/timer_create.c index 6cff16fb..813678a1 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -51,7 +51,8 @@ static void install_handler() .sa_flags = SA_SIGINFO | SA_RESTART }; __libc_sigaction(SIGTIMER, &sa, 0); - __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, SIGTIMER_SET, 0, 8); + __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, + SIGTIMER_SET, 0, __SYSCALL_SSLEN); } static void *start(void *arg) -- cgit v1.2.1