From 7f7b86e4b3815b112fe6881af6c261381f35286f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Jan 2004 01:53:04 +0000 Subject: [PATCH] merge: * Add SIGABRT to fault handling so we now got a backtrace, if we crash in libldap with SIGABRT metze --- source/lib/fault.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/lib/fault.c b/source/lib/fault.c index df7830ef83b..d8364ff2257 100644 --- a/source/lib/fault.c +++ b/source/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 } - - - -- 2.11.4.GIT