summaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-08-09 22:52:13 -0400
committerRich Felker <dalias@aerifal.cx>2012-08-09 22:52:13 -0400
commit2f437040e7911d9bef239588ea7ed6f4b9102922 (patch)
treecfb4950352818b7a3ed2f5be9d9425bbb0b7cd3a /src/time
parent83b42d94bd1009da6a95052d9ef0edeb1c73c8e4 (diff)
downloadmusl-2f437040e7911d9bef239588ea7ed6f4b9102922.tar.gz
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/time')
-rw-r--r--src/time/timer_create.c3
1 files changed, 2 insertions, 1 deletions
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)