From: Steven Luo Date: Sun, 13 Dec 2009 08:35:18 +0000 (-0800) Subject: Actually initialize sa_mask properly X-Git-Tag: v3.0rc1~23 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=04085eb0cee3b0654336d68f9256da728805773f;ds=sidebyside 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. --- 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) {