::arg().set("entropy-source", "If set, read entropy from this file")="/dev/urandom";
::arg().set("lua-prequery-script", "Lua script with prequery handler")="";
+
+ ::arg().setSwitch("traceback-handler","Enable the traceback handler (Linux only)")="yes";
}
void declareStats(void)
#
# tcp-control-secret=
+#################################
+# traceback-handler Enable the traceback handler (Linux only)
+#
+# traceback-handler=yes
+
#################################
# trusted-notification-proxy IP address of incoming notification proxy
#
// we really need to do work - either standalone or as an instance
-
+
+#ifdef __linux__
+ if(!::arg().mustDo("traceback-handler")) {
+ L<<Logger::Warning<<"Disabling traceback handler"<<endl;
+ signal(SIGSEGV,SIG_DFL);
+ signal(SIGFPE,SIG_DFL);
+ signal(SIGABRT,SIG_DFL);
+ signal(SIGILL,SIG_DFL);
+ }
+#endif
+
seedRandom(::arg()["entropy-source"]);
loadModules();