Received: from eggs.gnu.org ([2001:4830:134:3::10]:34332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFTMM-0000eS-OM for qemu-devel@nongnu.org; Mon, 17 Feb 2014 13:56:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFTML-0007mk-5W for qemu-devel@nongnu.org; Mon, 17 Feb 2014 13:56:06 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:45982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFTMK-0007ix-Uu for qemu-devel@nongnu.org; Mon, 17 Feb 2014 13:56:05 -0500 From: Peter Maydell Date: Mon, 17 Feb 2014 18:55:32 +0000 Message-Id: <1392663334-8555-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1392663334-8555-1-git-send-email-peter.maydell@linaro.org> References: <1392663334-8555-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 2/4] linux-user/signal.c: Don't pass sigaction uninitialised sa_flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , patches@linaro.org 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 --- linux-user/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index 82e8592..04638e2 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 -- 1.8.5