From 3a5d30bf272c8db8e16e1e7ad5b8953f08df3e82 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 17 Feb 2014 18:55:32 +0000 Subject: 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 Signed-off-by: Riku Voipio --- linux-user/signal.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3