Commit 36567f6e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Launch varnish on -vcl or -vcl+backend if not already done.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2728 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a516b665
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment