diff options
| author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-15 08:52:09 -0700 |
|---|---|---|
| committer | android code review <noreply-gerritcodereview@google.com> | 2012-08-15 08:52:09 -0700 |
| commit | 2765e4fb39af2f8260de1177027e292f2a7198bd (patch) | |
| tree | 6a05ab7469b9728c86c680a990add2e5df99ffac | |
| parent | 8124e0736208c47a74767170d31e3c24e0f47504 (diff) | |
| parent | 6736eb1829abd57a6304c6efaa54a6f23cb8115d (diff) | |
| download | system_core-2765e4fb39af2f8260de1177027e292f2a7198bd.tar.gz system_core-2765e4fb39af2f8260de1177027e292f2a7198bd.tar.bz2 system_core-2765e4fb39af2f8260de1177027e292f2a7198bd.zip | |
Merge "Use sigemptyset to initialise signal mask as it is more portable. Referencing sa_restorer fails on MIPS"
| -rw-r--r-- | init/signal_handler.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/init/signal_handler.c b/init/signal_handler.c index b1701325..abccb406 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 */ |
