[master] 9588e2d Do a "backend.list" to try to provoke any pending panics better, this CLI command goes to the varnish worker process if it is running and gives an error (which we ignore) if it isn't.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Aug 5 12:07:39 CEST 2014
commit 9588e2d3ff33c250e3f9d4172cadd26c41c2fb3f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Aug 5 10:06:16 2014 +0000
Do a "backend.list" to try to provoke any pending panics better,
this CLI command goes to the varnish worker process if it is
running and gives an error (which we ignore) if it isn't.
diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index c559810..469effd 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -576,11 +576,13 @@ varnish_wait(struct varnish *v)
void *p;
int status, r;
struct rusage ru;
+ char *resp;
if (v->cli_fd < 0)
return;
if (vtc_error)
(void)sleep(1); /* give panic messages a chance */
+ varnish_ask_cli(v, "backend.list", &resp);
varnish_stop(v);
vtc_log(v->vl, 2, "Wait");
AZ(close(v->cli_fd));
More information about the varnish-commit
mailing list