mirror of
https://github.com/fluencelabs/musl
synced 2025-07-01 15:42:05 +00:00
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.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ int __sigprocmask(int how, const sigset_t *set, sigset_t *old)
|
||||
set = &tmp;
|
||||
sigdelset(&tmp, SIGCANCEL);
|
||||
sigdelset(&tmp, SIGSYSCALL);
|
||||
sigdelset(&tmp, SIGTIMER);
|
||||
}
|
||||
return __libc_sigprocmask(how, set, old);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
int __libc_current_sigrtmin()
|
||||
{
|
||||
return 34;
|
||||
return 35;
|
||||
}
|
||||
|
Reference in New Issue
Block a user