From 646d16b3149fad9cf3ee5ce1128eadb2476e375c Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 4 Sep 2018 20:13:02 +0100 Subject: [PATCH] git-timer_create_sigmask =================================================================== Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-timer_create_sigmask.diff --- sysdeps/pthread/timer_routines.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.30.2