[4.0] 6d58b5e 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.
    Lasse Karstensen 
    lkarsten at varnish-software.com
       
    Mon Sep 22 16:38:23 CEST 2014
    
    
  
commit 6d58b5e039bc2e0bce2c81097eb192d1205360db
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