]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
sigaction: make osa_handler SIG_IGN instead of SIG_DFL.
authorAntti Kantee <pooka@iki.fi>
Mon, 21 Sep 2015 13:49:14 +0000 (13:49 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 21 Sep 2015 13:49:14 +0000 (13:49 +0000)
Latter was accidental.  Former is more honest.

lib/librumprun_base/signals.c

index 1079e54b9c6a603d7257a77c9750191328046ed4..cb23f982fb15f0c702f2f97badcd94565e4671a3 100644 (file)
@@ -53,8 +53,10 @@ sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
        STUBWARN();
 
        /* should probably track contents, maybe later */
-       if (oact)
+       if (oact) {
                memset(oact, 0, sizeof(*oact));
+               oact->sa_handler = SIG_IGN;
+       }
        return 0;
 }
 __strong_alias(sigaction,__sigaction14);