[3.0] a636c01 Detect client crashing during startup

Tollef Fog Heen tfheen at varnish-cache.org
Thu May 24 14:51:10 CEST 2012


commit a636c010cbb767a4610d8d6b11f97e15d027bbce
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sun Feb 19 11:05:09 2012 +0000

    Detect client crashing during startup

diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index dec9754..1b3b445 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -159,6 +159,12 @@ wait_running(const struct varnish *v)
 		if (st != CLIS_OK)
 			vtc_log(v->vl, 0,
 			    "CLI status command failed: %u %s", st, r);
+		if (!strcmp(r, "Child in state stopped")) {
+			vtc_log(v->vl, 0,
+			    "Child stopped before running: %u %s", st, r);
+			free(r);
+			break;
+		}
 		if (!strcmp(r, "Child in state running")) {
 			free(r);
 			break;



More information about the varnish-commit mailing list