]> err.no Git - varnish/commitdiff
Launch varnish on -vcl or -vcl+backend if not already done.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jun 2008 10:19:33 +0000 (10:19 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jun 2008 10:19:33 +0000 (10:19 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2728 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_varnish.c

index 88704fc123b267741cd45b0d77b8d71e49baf43d..03119cdefe7612d15608f75d2c2f65a0d2853210 100644 (file)
@@ -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);