diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-01-22 01:53:04 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-01-22 01:53:04 +0000 |
commit | 16f2ddf52ea04d421b4e3b570601906f76368d68 (patch) | |
tree | 3c59a27585161be15bf9d1f0cbc9c3329c5d9f24 | |
parent | 57d4be5159405734d32807f11c291c83c37db5f1 (diff) | |
download | samba-16f2ddf52ea04d421b4e3b570601906f76368d68.tar.gz samba-16f2ddf52ea04d421b4e3b570601906f76368d68.tar.bz2 samba-16f2ddf52ea04d421b4e3b570601906f76368d68.zip |
merge:
* Add SIGABRT to fault handling
so we now got a backtrace, if we crash
in libldap with SIGABRT
metze
(This used to be commit 7f7b86e4b3815b112fe6881af6c261381f35286f)
-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 } - - - |