[master] 546a3cc Test the panic-buffer so we know it works.

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 29 10:54:06 CEST 2017


commit 546a3cc17a9167ff5c574ab16fc407b14d95369c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 29 08:21:45 2017 +0000

    Test the panic-buffer so we know it works.

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 9957b3e..6f96941 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -697,5 +697,8 @@ PAN_Init(void)
 	AN(heritage.panic_str_len);
 	AN(VSB_new(pan_vsb, heritage.panic_str, heritage.panic_str_len,
 	    VSB_FIXEDLEN));
+	VSB_printf(pan_vsb, "This is a test\n");
+	AZ(VSB_finish(pan_vsb));
+	VSB_clear(pan_vsb);
 	CLI_AddFuncs(debug_cmds);
 }



More information about the varnish-commit mailing list