1
0
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:
Stefan Metzmacher 2004-01-22 01:50:58 +00:00
parent f9e9acb07f
commit fc33274a27
2 changed files with 9 additions and 4 deletions

View File

@ -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>

View File

@ -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
}