we don't want bind9 calling the Samba segv handler
**/
_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
#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.
setup our fault handlers
**/
_PUBLIC_ void fault_setup(const char *pname);
+_PUBLIC_ void fault_setup_disable(void);
#endif
/**
struct poptOption **popt_options;
int ret;
+ fault_setup_disable();
+
popt_options = ldb_module_popt_options(state->samdb);
(*popt_options) = long_options;