From 90dc50b07c3939dda44fde79f696f64bf8f2f4d7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 29 Mar 2014 20:20:14 +0100 Subject: restoreSIGPIPE(): Fill in sa_mask Issue #231. --- src/libmain/shared.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libmain') 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"); -- cgit 1.4.1