From: Steven Luo Date: Sun, 13 Dec 2009 08:29:04 +0000 (-0800) Subject: Initialize sa_mask in sigaction structure X-Git-Tag: v3.0rc1~24 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=8dde3166d0a99a74fc16f6afa4f5106167a9bab3 Initialize sa_mask in sigaction structure Found by valgrind. --- diff --git a/main.c b/main.c index 9033117..a366fe7 100644 --- a/main.c +++ b/main.c @@ -169,6 +169,7 @@ int main() { if (ctx.continuous_mode) { struct sigaction act; act.sa_flags = SA_RESTART; + act.sa_mask = 0; act.sa_handler = waitforzombies; if (sigaction(SIGCHLD, &act, NULL) == -1) {