1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

restoreSIGPIPE(): Fill in sa_mask

Issue #231.
This commit is contained in:
Eelco Dolstra 2014-03-29 20:20:14 +01:00
parent 49009573bc
commit 90dc50b07c
2 changed files with 2 additions and 1 deletions

View file

@ -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");
}