1
0
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 commit is contained in:
Stefan Metzmacher 0001-01-01 00:00:00 +00:00
parent 413ed77142
commit b5e814294e
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
}