From 328a1940366a5be441c89fe23f717b747549b800 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Mon, 16 Jul 2018 21:23:13 +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