summaryrefslogtreecommitdiff
path: root/hw/xquartz
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-04-26 18:31:08 +0900
committerAdam Jackson <ajax@redhat.com>2017-04-26 16:07:19 -0400
commit27a6b9f7c84c914d0f5909ec1069d72f5035bc04 (patch)
treea202f04eb2c42831c535d1fcfb90089d327b4cbf /hw/xquartz
parent23f2f1932a1d3f36468eaf735ae34934d246567b (diff)
os: Handle SIGABRT
Without this, assertion failures can make life hard for users and those trying to help them. v2: * Change commit log wording slightly to "can make life hard", since apparently e.g. logind can alleviate that somewhat. * Set default handler for SIGABRT in hw/xfree86/common/xf86Init.c:InstallSignalHandlers() and hw/xquartz/quartz.c:QuartzInitOutput() (Eric Anholt) Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'hw/xquartz')
-rw-r--r--hw/xquartz/quartz.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c
index c8b6f966d..c8ea3bf8b 100644
--- a/hw/xquartz/quartz.c
+++ b/hw/xquartz/quartz.c
@@ -178,6 +178,7 @@ QuartzInitOutput(int argc,
{
/* For XQuartz, we want to just use the default signal handler to work better with CrashTracer */
signal(SIGSEGV, SIG_DFL);
+ signal(SIGABRT, SIG_DFL);
signal(SIGILL, SIG_DFL);
#ifdef SIGEMT
signal(SIGEMT, SIG_DFL);