From 016a5dc1925a66c7d1ffc14b862b1342f399cfda Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 14 Apr 2011 12:51:00 -0400 Subject: use a separate signal from SIGCANCEL for SIGEV_THREAD timers otherwise we cannot support an application's desire to use asynchronous cancellation within the callback function. this change also slightly debloats pthread_create.c. --- src/signal/sigaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/signal/sigaction.c') diff --git a/src/signal/sigaction.c b/src/signal/sigaction.c index 3d374e1f..887bbc4f 100644 --- a/src/signal/sigaction.c +++ b/src/signal/sigaction.c @@ -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; } -- cgit v1.2.1