diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-01-22 01:50:58 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-01-22 01:50:58 +0000 |
commit | fc33274a27b98d67a3f1172aebc9e70073b6dcab (patch) | |
tree | 14f931823a812a4745029dcfe7bfd8cceade0aaa /source3 | |
parent | f9e9acb07f07456c01ee69116eda0496299abac2 (diff) | |
download | samba-fc33274a27b98d67a3f1172aebc9e70073b6dcab.tar.gz samba-fc33274a27b98d67a3f1172aebc9e70073b6dcab.tar.bz2 samba-fc33274a27b98d67a3f1172aebc9e70073b6dcab.zip |
* Add SIGABRT to fault handling
so we now got a backtrace, if we crash
in libldap with SIGABRT
metze
(This used to be commit b5e814294eb3ce44131084d89014cb8a8840fe74)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/fault.c | 9 |
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 } - - - |