From: Richard Henderson Date: Tue, 22 Aug 2023 20:08:11 +0000 (-0700) Subject: linux-user: Exit not abort in die_with_backtrace X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ee72c47eebe119575b2bb684912bbb8c9efc9ba7;p=qemu.git linux-user: Exit not abort in die_with_backtrace This line is supposed to be unreachable, but if we're going to have it at all, SIGABRT via abort() is subject to the same signal peril that created this function in the first place. We can _exit immediately without peril. Acked-by: Helge Deller Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- diff --git a/linux-user/signal.c b/linux-user/signal.c index b7a2c47837..84a56b76cc 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -713,7 +713,7 @@ void die_with_signal(int host_sig) sigsuspend(&act.sa_mask); /* unreachable */ - abort(); + _exit(EXIT_FAILURE); } static G_NORETURN