summaryrefslogtreecommitdiff
path: root/source3/lib/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/fault.c')
-rw-r--r--source3/lib/fault.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/fault.c b/source3/lib/fault.c
index df7830ef83..d8364ff225 100644
--- a/source3/lib/fault.c
+++ b/source3/lib/fault.c
@@ -48,6 +48,9 @@ static void fault_report(int sig)
#ifdef SIGBUS
CatchSignal(SIGBUS,SIGNAL_CAST SIG_DFL);
#endif
+#ifdef SIGABRT
+ CatchSignal(SIGABRT,SIGNAL_CAST SIG_DFL);
+#endif
return; /* this should cause a core dump */
}
exit(1);
@@ -74,7 +77,7 @@ void fault_setup(void (*fn)(void *))
#ifdef SIGBUS
CatchSignal(SIGBUS,SIGNAL_CAST sig_fault);
#endif
+#ifdef SIGABRT
+ CatchSignal(SIGABRT,SIGNAL_CAST sig_fault);
+#endif
}
-
-
-