about summary refs log tree commit diff
path: root/nptl/pthread_attr_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_attr_copy.c')
-rw-r--r--nptl/pthread_attr_copy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl/pthread_attr_copy.c b/nptl/pthread_attr_copy.c
index eb29557505..5d0c62f65c 100644
--- a/nptl/pthread_attr_copy.c
+++ b/nptl/pthread_attr_copy.c
@@ -42,6 +42,11 @@ __pthread_attr_copy (pthread_attr_t *target, const pthread_attr_t *source)
         ret = __pthread_attr_setaffinity_np (&temp.external,
                                              isource->extension->cpusetsize,
                                              isource->extension->cpuset);
+
+      /* Propagate the signal mask information.  */
+      if (ret == 0 && isource->extension->sigmask_set)
+        ret = __pthread_attr_setsigmask_internal ((pthread_attr_t *) &temp,
+                                                  &isource->extension->sigmask);
     }
 
   if (ret != 0)