From: phk Date: Fri, 30 Jun 2006 09:14:51 +0000 (+0000) Subject: Delete compiled VCL file after we tried to load it. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362f30db692bc1400ef3eb412deee3fa252dc1f8;p=varnish Delete compiled VCL file after we tried to load it. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@271 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_vcl.c b/varnish-cache/bin/varnishd/cache_vcl.c index 84b85733..925bc632 100644 --- a/varnish-cache/bin/varnishd/cache_vcl.c +++ b/varnish-cache/bin/varnishd/cache_vcl.c @@ -3,6 +3,7 @@ */ #include +#include #include #include #include @@ -69,6 +70,7 @@ CVCL_Load(const char *fn, const char *name) assert(vcl != NULL); vcl->dlh = dlopen(fn, RTLD_NOW | RTLD_LOCAL); + unlink(fn); if (vcl->dlh == NULL) { fprintf(stderr, "dlopen(%s): %s\n", fn, dlerror()); free(vcl);