From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG4V7-00076m-GZ for qemu-devel@nongnu.org; Wed, 19 Feb 2014 05:35:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG4V2-0007C6-Io for qemu-devel@nongnu.org; Wed, 19 Feb 2014 05:35:37 -0500 Received: from afflict.kos.to ([92.243.29.197]:33838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG4V2-0007Ar-9M for qemu-devel@nongnu.org; Wed, 19 Feb 2014 05:35:32 -0500 From: riku.voipio@linaro.org Date: Wed, 19 Feb 2014 12:35:26 +0200 Message-Id: <3a5d30bf272c8db8e16e1e7ad5b8953f08df3e82.1392805802.git.riku.voipio@linaro.org> In-Reply-To: References: Subject: [Qemu-devel] [PATCH 3/6] 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: Peter Maydell From: Peter Maydell 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 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.1.2