mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
2004-11-17 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread): Make sure SIGCANCEL is blocked as well.
This commit is contained in:
@ -122,10 +122,13 @@ __start_helper_thread (void)
|
|||||||
(void) pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
|
(void) pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
|
||||||
|
|
||||||
/* Block all signals in the helper thread. To do this thoroughly we
|
/* Block all signals in the helper thread. To do this thoroughly we
|
||||||
temporarily have to block all signals here. */
|
temporarily have to block all signals here. The helper can lose
|
||||||
|
wakeups if SIGCANCEL is not blocked throughout, but sigfillset omits
|
||||||
|
it. So, we add it back explicitly here. */
|
||||||
sigset_t ss;
|
sigset_t ss;
|
||||||
sigset_t oss;
|
sigset_t oss;
|
||||||
sigfillset (&ss);
|
sigfillset (&ss);
|
||||||
|
__sigaddset (&ss, SIGCANCEL);
|
||||||
INTERNAL_SYSCALL_DECL (err);
|
INTERNAL_SYSCALL_DECL (err);
|
||||||
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
|
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user