]> err.no Git - varnish/commitdiff
Delete compiled VCL file after we tried to load it.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 30 Jun 2006 09:14:51 +0000 (09:14 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 30 Jun 2006 09:14:51 +0000 (09:14 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@271 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vcl.c

index 84b8573344425e275db6c850826d03ef96f5e012..925bc6320c36853a5f346a91485466fdab0e944b 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include <stdio.h>
+#include <unistd.h>
 #include <string.h>
 #include <assert.h>
 #include <stdlib.h>
@@ -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);