[master] 4149d8b Make sure the panic string is empty
Federico G. Schwindt
fgsch at lodoss.net
Sat Sep 2 20:43:11 CEST 2017
commit 4149d8bfc2af1afe7be5fd21362652680f0bea0e
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Sat Sep 2 19:13:17 2017 +0100
Make sure the panic string is empty
diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 6f96941..0d329e1 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -700,5 +700,6 @@ PAN_Init(void)
VSB_printf(pan_vsb, "This is a test\n");
AZ(VSB_finish(pan_vsb));
VSB_clear(pan_vsb);
+ heritage.panic_str[0] = '\0';
CLI_AddFuncs(debug_cmds);
}
diff --git a/bin/varnishtest/tests/v00010.vtc b/bin/varnishtest/tests/v00010.vtc
index 1c65a90..d6b1996 100644
--- a/bin/varnishtest/tests/v00010.vtc
+++ b/bin/varnishtest/tests/v00010.vtc
@@ -39,6 +39,9 @@ varnish v1 -arg "-smalloc,1m" -vcl+backend {
}
} -start
+varnish v1 -cliok "stop"
+varnish v1 -cliok "start"
+varnish v1 -expect MGT.child_panic == 0
varnish v1 -cliok "param.set feature +no_coredump"
client c1 {
More information about the varnish-commit
mailing list