diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-08-22 13:08:11 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-10-18 15:33:41 -0700 |
commit | ee72c47eebe119575b2bb684912bbb8c9efc9ba7 (patch) | |
tree | 0ae12fb55c8b6bb5622c8ae0650e2ddd3a4b2f85 | |
parent | b8b50f1e9ac8007831c2df1bd0d728f420d5818c (diff) | |
download | qemu-ee72c47eebe119575b2bb684912bbb8c9efc9ba7.zip qemu-ee72c47eebe119575b2bb684912bbb8c9efc9ba7.tar.gz qemu-ee72c47eebe119575b2bb684912bbb8c9efc9ba7.tar.bz2 |
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 <deller@gmx.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | linux-user/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index b7a2c47..84a56b7 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 |