about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libmain/shared.cc2
-rw-r--r--src/libstore/build.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 30238c7fbe9a..a390654452ed 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -110,7 +110,7 @@ static void initAndRun(int argc, char * * argv)
     /* Catch SIGINT. */
     struct sigaction act;
     act.sa_handler = sigintHandler;
-    sigfillset(&act.sa_mask);
+    sigemptyset(&act.sa_mask);
     act.sa_flags = 0;
     if (sigaction(SIGINT, &act, 0))
         throw SysError("installing handler for SIGINT");
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e846995f76bb..5a869ead610d 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -413,6 +413,7 @@ static void restoreSIGPIPE()
     struct sigaction act, oact;
     act.sa_handler = SIG_DFL;
     act.sa_flags = 0;
+    sigemptyset(&act.sa_mask);
     if (sigaction(SIGPIPE, &act, &oact)) throw SysError("resetting SIGPIPE");
 }