about summary refs log tree commit diff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-10-17 13:40:46 -0700
committerRoland McGrath <roland@hack.frob.com>2014-10-17 13:40:46 -0700
commit327ae2570744dabf7f065a6b529d16cc22438603 (patch)
tree1ceb494203f9a8c6419d6f76d9ad155951646ea1 /nptl/pthread_create.c
parentb0643088bc7387e04cf53dcf7331d02f7fa62c72 (diff)
downloadglibc-327ae2570744dabf7f065a6b529d16cc22438603.tar.gz
glibc-327ae2570744dabf7f065a6b529d16cc22438603.tar.xz
glibc-327ae2570744dabf7f065a6b529d16cc22438603.zip
NPTL: Conditionalize more uses of SIGCANCEL and SIGSETXID.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index b9af010767..0055634cd3 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -263,6 +263,7 @@ start_thread (void *arg)
     }
 #endif
 
+#ifdef SIGCANCEL
   /* If the parent was running cancellation handlers while creating
      the thread the new thread inherited the signal mask.  Reset the
      cancellation signal mask.  */
@@ -275,6 +276,7 @@ start_thread (void *arg)
       (void) INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_UNBLOCK, &mask,
 			       NULL, _NSIG / 8);
     }
+#endif
 
   /* This is where the try/finally block should be created.  For
      compilers without that support we do use setjmp.  */