about summary refs log tree commit diff
path: root/posix/spawnattr_setsigmask.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/spawnattr_setsigmask.c')
-rw-r--r--posix/spawnattr_setsigmask.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/spawnattr_setsigmask.c b/posix/spawnattr_setsigmask.c
index aa917ff60d..e0a94cb3a2 100644
--- a/posix/spawnattr_setsigmask.c
+++ b/posix/spawnattr_setsigmask.c
@@ -25,7 +25,7 @@ posix_spawnattr_setsigmask (posix_spawnattr_t *attr,
 			    const sigset_t *sigmask)
 {
   /* Copy the sigset_t data to the user buffer.  */
-  memcpy (&attr->__ss, sigdefault, sizeof (sigset_t));
+  memcpy (&attr->__ss, sigmask, sizeof (sigset_t));
 
   return 0;
 }