From: GNU Libc Maintainers Date: Tue, 4 Sep 2018 19:13:02 +0000 (+0100) Subject: git-timer_create_sigmask X-Git-Tag: archive/raspbian/2.27-6+rpi1^2~57 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=646d16b3149fad9cf3ee5ce1128eadb2476e375c;p=glibc.git git-timer_create_sigmask =================================================================== Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-timer_create_sigmask.diff --- diff --git a/sysdeps/pthread/timer_routines.c b/sysdeps/pthread/timer_routines.c index f059beb4c..e232220ac 100644 --- a/sysdeps/pthread/timer_routines.c +++ b/sysdeps/pthread/timer_routines.c @@ -460,10 +460,14 @@ int __timer_thread_start (struct thread_node *thread) { int retval = 1; + sigset_t set, oset; assert (!thread->exists); thread->exists = 1; + sigfillset (&set); + pthread_sigmask (SIG_SETMASK, &set, &oset); + if (pthread_create (&thread->id, &thread->attr, (void *(*) (void *)) thread_func, thread) != 0) { @@ -471,6 +475,8 @@ __timer_thread_start (struct thread_node *thread) retval = -1; } + pthread_sigmask (SIG_SETMASK, &oset, NULL); + return retval; }