diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-02-17 18:55:32 +0000 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2014-02-18 16:54:06 +0200 |
commit | 3a5d30bf272c8db8e16e1e7ad5b8953f08df3e82 (patch) | |
tree | 8a33e508e2457d0a91a915f1dfd0574df17494f9 /linux-user/signal.c | |
parent | 6afafa86f3446f5e6dd410cc2c442e98adabc26c (diff) |
linux-user/signal.c: Don't pass sigaction uninitialised sa_flags
When forcing a fatal signal, we weren't initialising the sa_flags
field in the struct sigaction we used to reset the signal handler
to SIG_DFL.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/signal.c')
-rw-r--r-- | linux-user/signal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index 82e8592546..04638e2ead 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -420,6 +420,7 @@ static void QEMU_NORETURN force_sig(int target_sig) * it to arrive. */ sigfillset(&act.sa_mask); act.sa_handler = SIG_DFL; + act.sa_flags = 0; sigaction(host_sig, &act, NULL); /* For some reason raise(host_sig) doesn't send the signal when |