mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
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>
This commit is contained in:
parent
b8b50f1e9a
commit
ee72c47eeb
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ void die_with_signal(int host_sig)
|
|||
sigsuspend(&act.sa_mask);
|
||||
|
||||
/* unreachable */
|
||||
abort();
|
||||
_exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
static G_NORETURN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue