use a separate signal from SIGCANCEL for SIGEV_THREAD timers
[musl] / src / signal / sigaction.c
index 3d374e1..887bbc4 100644 (file)
@@ -35,7 +35,7 @@ int __libc_sigaction(int sig, const struct sigaction *sa, struct sigaction *old)
 
 int __sigaction(int sig, const struct sigaction *sa, struct sigaction *old)
 {
-       if (sig == SIGCANCEL || sig == SIGSYSCALL) {
+       if (sig-SIGCANCEL < 3U) {
                errno = EINVAL;
                return -1;
        }