Fix that sigaction mask wasn't zeroed
authorRoland Schulz <roland@utk.edu>
Wed, 23 May 2012 09:30:50 +0000 (05:30 -0400)
committerRoland Schulz <roland@utk.edu>
Wed, 23 May 2012 09:32:47 +0000 (05:32 -0400)
Change-Id: I84a1f77e6320538730cc367ed722eadf22046a68

src/gmxlib/sighandler.c

index 7c9496a78c5e9b485d00467260fd222f5dfae203..95fe43525397ad3325c7e850dcf4cc3c5f958414 100644 (file)
@@ -102,6 +102,7 @@ static void gmx_signal(int signum)
 #ifdef HAVE_SIGACTION
     struct sigaction act;
     act.sa_handler = signal_handler;
+    sigemptyset(&act.sa_mask);
     act.sa_flags = SA_RESTART;
     sigaction(signum,&act,NULL);
 #else