[master] 06b6c78 Detect client crashing during startup
Poul-Henning Kamp
phk at varnish-cache.org
Sun Feb 19 12:05:24 CET 2012
commit 06b6c7882458b9ffecede17f4b66f5aca1d4a3b4
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 880f966..c00a143 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -156,6 +156,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