From 04085eb0cee3b0654336d68f9256da728805773f Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Sun, 13 Dec 2009 00:35:18 -0800 Subject: [PATCH] Actually initialize sa_mask properly sigset_t isn't necessarily an integer, so we can't assign an integer to it -- use the appropriate function instead. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index a366fe7..73ca570 100644 --- a/main.c +++ b/main.c @@ -169,7 +169,7 @@ int main() { if (ctx.continuous_mode) { struct sigaction act; act.sa_flags = SA_RESTART; - act.sa_mask = 0; + sigemptyset(&(act.sa_mask)); act.sa_handler = waitforzombies; if (sigaction(SIGCHLD, &act, NULL) == -1) { -- 1.7.9.5