summaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-04-03 18:53:31 +0000
committerUlrich Drepper <drepper@redhat.com>2003-04-03 18:53:31 +0000
commitff4d6f1bd55896bdda546bacd9689dbfb24ecacf (patch)
treecdcb38551f9c564dca26af46aa0a52c8464b5a67 /linuxthreads
parent148bb057a01d766e2a8ab9fb77ba821a9e0bf648 (diff)
downloadglibc-ff4d6f1bd55896bdda546bacd9689dbfb24ecacf.tar.gz
Update.
2003-04-03 Jakub Jelinek <jakub@redhat.com> * pthread.c (pthread_initialize): Unblock __pthread_sig_cancel in case the parent blocked it.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog5
-rw-r--r--linuxthreads/pthread.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 38d5cce1d7..60d30653b5 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-03 Jakub Jelinek <jakub@redhat.com>
+
+ * pthread.c (pthread_initialize): Unblock __pthread_sig_cancel
+ in case the parent blocked it.
+
2003-04-02 Jakub Jelinek <jakub@redhat.com>
* Makefile (libpthread-routines): Add pthread_atfork.
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c
index f165ab1093..8b1b14fff9 100644
--- a/linuxthreads/pthread.c
+++ b/linuxthreads/pthread.c
@@ -529,6 +529,10 @@ static void pthread_initialize(void)
sigemptyset(&mask);
sigaddset(&mask, __pthread_sig_restart);
sigprocmask(SIG_BLOCK, &mask, NULL);
+ /* And unblock __pthread_sig_cancel if it has been blocked. */
+ sigdelset(&mask, __pthread_sig_restart);
+ sigaddset(&mask, __pthread_sig_cancel);
+ sigprocmask(SIG_UNBLOCK, &mask, NULL);
/* Register an exit function to kill all other threads. */
/* Do it early so that user-registered atexit functions are called
before pthread_*exit_process. */