mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +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>
|
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>
|
o Tim Potter <tpot@samba.org>
|
||||||
|
|
||||||
|
@ -47,6 +47,9 @@ static void fault_report(int sig)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef SIGBUS
|
#ifdef SIGBUS
|
||||||
CatchSignal(SIGBUS,SIGNAL_CAST SIG_DFL);
|
CatchSignal(SIGBUS,SIGNAL_CAST SIG_DFL);
|
||||||
|
#endif
|
||||||
|
#ifdef SIGABRT
|
||||||
|
CatchSignal(SIGABRT,SIGNAL_CAST SIG_DFL);
|
||||||
#endif
|
#endif
|
||||||
return; /* this should cause a core dump */
|
return; /* this should cause a core dump */
|
||||||
}
|
}
|
||||||
@ -74,7 +77,7 @@ void fault_setup(void (*fn)(void *))
|
|||||||
#ifdef SIGBUS
|
#ifdef SIGBUS
|
||||||
CatchSignal(SIGBUS,SIGNAL_CAST sig_fault);
|
CatchSignal(SIGBUS,SIGNAL_CAST sig_fault);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SIGABRT
|
||||||
|
CatchSignal(SIGABRT,SIGNAL_CAST sig_fault);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user