about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-29T19·20+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-29T19·20+0100
commit90dc50b07c3939dda44fde79f696f64bf8f2f4d7 (patch)
tree2e1e220ee90c434c6abb6a8ef5a0118c7ec02dc1 /src/libstore/build.cc
parent49009573bc2eacd823d57433daf1f59dfe415065 (diff)
restoreSIGPIPE(): Fill in sa_mask
Issue #231.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc1
1 files changed, 1 insertions, 0 deletions
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");
 }