OSDN Git Service

linux-user: Remap guest SIGABRT
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 30 Sep 2023 19:05:11 +0000 (12:05 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Oct 2023 23:25:06 +0000 (16:25 -0700)
commit38ee0a7dfb4b15407678df26448e4a18fd9a51d4
tree5e7efbde27a86f40b10919cdf43f057b47db941c
parent4a6ebc19a7e2d013a0e2ca79452ea733b1d5b686
linux-user: Remap guest SIGABRT

Distinguish host SIGABRT from guest SIGABRT by mapping
the guest signal onto one of the host RT signals.

This prevents a cycle by which a host assertion failure
is caught and handled by host_signal_handler, queued for
the guest, and then we attempt to continue past the
host abort.  What happens next depends on the host libc,
but is neither good nor helpful.

Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/signal.c