From 6736eb1829abd57a6304c6efaa54a6f23cb8115d Mon Sep 17 00:00:00 2001 From: Chris Dearman Date: Tue, 10 Jul 2012 12:15:19 -0700 Subject: [PATCH] Use sigemptyset to initialise signal mask as it is more portable. Referencing sa_restorer fails on MIPS Change-Id: I81c9ed5ef027a9d5258942ffcecb96e3f787e93c Signed-off-by: Chris Dearman --- init/signal_handler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init/signal_handler.c b/init/signal_handler.c index b17013256..abccb4060 100644 --- a/init/signal_handler.c +++ b/init/signal_handler.c @@ -131,11 +131,9 @@ void signal_init(void) int s[2]; struct sigaction act; - + memset(&act, 0, sizeof(act)); act.sa_handler = sigchld_handler; act.sa_flags = SA_NOCLDSTOP; - act.sa_mask = 0; - act.sa_restorer = NULL; sigaction(SIGCHLD, &act, 0); /* create a signalling mechanism for the sigchld handler */