]> err.no Git - varnish/commitdiff
Avoid a startup-race
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Sep 2006 10:14:29 +0000 (10:14 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Sep 2006 10:14:29 +0000 (10:14 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@959 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_expire.c

index bccf56420cc535ae91c6e35faa1ad229620d4b52..0699178c99c38e617655bca978e2f542edca5da7 100644 (file)
@@ -112,6 +112,7 @@ exp_prefetch(void *arg)
 
        sp = SES_New(NULL, 0);
        XXXAN(sp);
+       sleep(10);              /* Takes time for VCL to arrive */
        sp->vcl = VCL_Get();
        t = time(NULL);
        while (1) {