mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
* Add SIGABRT to fault handling
so we now got a backtrace, if we crash
in libldap with SIGABRT
metze
(This used to be commit b5e814294e
)
This commit is contained in:
parent
f9e9acb07f
commit
fc33274a27
@ -52,7 +52,9 @@ o Jim McDonough <jmcd@samba.org>
|
||||
|
||||
|
||||
o Stefan Metzmacher <metze@samba.org>
|
||||
|
||||
* Add SIGABRT to fault handling
|
||||
so we now got a backtrace, if we crash
|
||||
in libldap with SIGABRT
|
||||
|
||||
o Tim Potter <tpot@samba.org>
|
||||
|
||||
|
@ -47,6 +47,9 @@ static void fault_report(int sig)
|
||||
#endif
|
||||
#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 */
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user