Commit f8dd42a4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Expand the SIGSEGV handler to also cover SIGBUS

parent b2e94101
......@@ -377,6 +377,7 @@ mgt_launch_child(struct cli *cli)
sa.sa_sigaction = child_sigsegv_handler;
sa.sa_flags = SA_SIGINFO;
(void)sigaction(SIGSEGV, &sa, NULL);
(void)sigaction(SIGBUS, &sa, NULL);
}
(void)signal(SIGINT, SIG_DFL);
(void)signal(SIGTERM, SIG_DFL);
......
......@@ -505,7 +505,7 @@ struct parspec mgt_parspec[] = {
{ "sigsegv_handler", tweak_bool, &mgt_param.sigsegv_handler,
NULL, NULL,
"Install a signal handler which tries to dump debug "
"information on segmentation faults.",
"information on segmentation and buserror faults.",
MUST_RESTART,
"off", "bool" },
{ "vcl_dir", tweak_string, &mgt_vcl_dir,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment