From: phk Date: Mon, 3 Apr 2006 07:27:28 +0000 (+0000) Subject: Call the init function when the VCL code is loaded. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7788b73c6f473e5c0cdcb81d9ee807d26bf700e;p=varnish Call the init function when the VCL code is loaded. We may want to postpone this to use time later on. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@94 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_vcl.c b/varnish-cache/bin/varnishd/cache_vcl.c index eda866f0..fdd5d3f1 100644 --- a/varnish-cache/bin/varnishd/cache_vcl.c +++ b/varnish-cache/bin/varnishd/cache_vcl.c @@ -94,6 +94,7 @@ CVCL_Load(const char *fn, const char *name) active_vcl = vcl; AZ(pthread_mutex_unlock(&sessmtx)); fprintf(stderr, "Loaded \"%s\" as \"%s\"\n", fn , name); + vcl->conf->init_func(); return (0); }