Commit cfaf64b9 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Ignore the alternate stack if the handler is off

parent 0a360b4c
......@@ -124,7 +124,8 @@ void
THR_Init(void)
{
#ifdef HAVE_SIGALTSTACK
AZ(sigaltstack(&altstack, NULL));
if (altstack.ss_sp != NULL)
AZ(sigaltstack(&altstack, NULL));
#endif
}
......
......@@ -39,3 +39,12 @@ client c1 {
} -run
varnish v1 -cliok "panic.clear"
# Also check without the handler
varnish v1 -cliok "param.set sigsegv_handler off"
varnish v1 -vcl+backend {} -start
client c1 {
txreq
rxresp
} -run
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