From da5c328b4b4a793053a8b1c942ceda56da01625c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Dec 2010 12:42:23 +1100 Subject: s4-dns: disable segfault handling in dlz_bind9 we don't want bind9 calling the Samba segv handler --- lib/util/fault.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lib/util/fault.c') diff --git a/lib/util/fault.c b/lib/util/fault.c index bbb3190198..256e55a85b 100644 --- a/lib/util/fault.c +++ b/lib/util/fault.c @@ -187,9 +187,10 @@ setup our fault handlers **/ _PUBLIC_ void fault_setup(const char *pname) { - if (progname == NULL) { - progname = pname; + if (progname != NULL) { + return; } + progname = pname; #ifdef SIGSEGV CatchSignal(SIGSEGV, sig_fault); #endif @@ -204,6 +205,15 @@ _PUBLIC_ void fault_setup(const char *pname) #endif } +/** + disable setting up fault handlers +**/ +_PUBLIC_ void fault_setup_disable(void) +{ + progname = "fault disabled"; +} + + /** register a fault handler. Should only be called once in the execution of smbd. -- cgit