Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6736eb18 authored by Chris Dearman's avatar Chris Dearman Committed by Raghu Gandham
Browse files

Use sigemptyset to initialise signal mask as it is more portable.


Referencing sa_restorer fails on MIPS

Change-Id: I81c9ed5ef027a9d5258942ffcecb96e3f787e93c
Signed-off-by: default avatarChris Dearman <chris@mips.com>
parent c95c15b1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 */