From: phk Date: Tue, 17 Jun 2008 10:19:33 +0000 (+0000) Subject: Launch varnish on -vcl or -vcl+backend if not already done. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82d8307b306eb4f028c4fa7eea15e40b2ccf5284;p=varnish Launch varnish on -vcl or -vcl+backend if not already done. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2728 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_varnish.c b/varnish-cache/bin/varnishtest/vtc_varnish.c index 88704fc1..03119cde 100644 --- a/varnish-cache/bin/varnishtest/vtc_varnish.c +++ b/varnish-cache/bin/varnishtest/vtc_varnish.c @@ -295,6 +295,8 @@ varnish_vcl(struct varnish *v, char *vcl) struct vsb *vsb; unsigned u; + if (v->cli_fd < 0) + varnish_launch(v); vsb = vsb_newauto(); AN(vsb); @@ -342,6 +344,8 @@ varnish_vclbackend(struct varnish *v, char *vcl) char *p; unsigned u; + if (v->cli_fd < 0) + varnish_launch(v); vsb = vsb_newauto(); AN(vsb);