From: GNU Libc Maintainers Date: Mon, 16 Jul 2018 20:23:13 +0000 (+0100) Subject: git-timer_create_sigmask X-Git-Tag: archive/raspbian/2.27-5+rpi1^2~57 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=328a1940366a5be441c89fe23f717b747549b800;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; }