aboutsummaryrefslogtreecommitdiff
path: root/nptl/init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-11 19:02:26 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-11 19:02:26 +0000
commitf006d3a007b7caffd4c810fa71623b39334a1580 (patch)
tree77aa3aa11ab6c527e257648a6c7da97e233dd134 /nptl/init.c
parentea69482383319d05bed2d516a2cbb2a19549c1ce (diff)
downloadglibc-f006d3a007b7caffd4c810fa71623b39334a1580.tar
glibc-f006d3a007b7caffd4c810fa71623b39334a1580.tar.gz
glibc-f006d3a007b7caffd4c810fa71623b39334a1580.tar.bz2
glibc-f006d3a007b7caffd4c810fa71623b39334a1580.zip
Update.
* sysdeps/unix/sysv/linux/ia64/system.c: New file. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with kernel >= 2.5.64. 2003-03-11 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
Diffstat (limited to 'nptl/init.c')
-rw-r--r--nptl/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nptl/init.c b/nptl/init.c
index df8e67a83e..e4e30815a6 100644
--- a/nptl/init.c
+++ b/nptl/init.c
@@ -209,6 +209,13 @@ __pthread_initialize_minimal_internal (void)
(void) __libc_sigaction (SIGCANCEL, &sa, NULL);
+ /* The parent process might have left the signal blocked. Just in
+ case, unblock it. We reuse the signal mask in the sigaction
+ structure. It is already cleared. */
+ __sigaddset (&sa.sa_mask, SIGCANCEL);
+ (void) INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_UNBLOCK, &sa.sa_mask,
+ NULL, _NSIG / 8);
+
/* Determine the default allowed stack size. This is the size used
in case the user does not specify one. */