summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2011-11-21 23:50:36 +0100
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 13:47:56 +0300
commit2a28855e17942f6b05ea4684c7d55a7fd93a794b (patch)
tree383a7a21c8757655afa7c6fe394ad897aaab3cba
parent0d6a2f7e595218b5632ba7005128470e65138951 (diff)
downloadqemu-2a28855e17942f6b05ea4684c7d55a7fd93a794b.tar.gz
qemu-2a28855e17942f6b05ea4684c7d55a7fd93a794b.tar.bz2
qemu-2a28855e17942f6b05ea4684c7d55a7fd93a794b.zip
XXX dont dump core on sigabort
-rw-r--r--linux-user/signal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index e11b20887..48b6513b9 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -448,6 +448,10 @@ static void QEMU_NORETURN force_sig(int target_sig)
host_sig = target_to_host_signal(target_sig);
gdb_signalled(env, target_sig);
+ if (target_sig == 6) {
+ goto no_core;
+ }
+
/* dump core if supported by target binary format */
if (core_dump_signal(target_sig) && (ts->bprm->core_dump != NULL)) {
stop_all_tasks();
@@ -465,6 +469,8 @@ static void QEMU_NORETURN force_sig(int target_sig)
target_sig, strsignal(host_sig), "core dumped" );
}
+no_core:
+
/* The proper exit code for dying from an uncaught signal is
* -<signal>. The kernel doesn't allow exit() or _exit() to pass
* a negative value. To get the proper exit code we need to