From 362f30db692bc1400ef3eb412deee3fa252dc1f8 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 30 Jun 2006 09:14:51 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_vcl.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5