From: phk Date: Mon, 11 Sep 2006 10:14:29 +0000 (+0000) Subject: Avoid a startup-race X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=301148ee788c1e513ac869cd30f34285c951a22c;p=varnish Avoid a startup-race git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@959 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_expire.c b/varnish-cache/bin/varnishd/cache_expire.c index bccf5642..0699178c 100644 --- a/varnish-cache/bin/varnishd/cache_expire.c +++ b/varnish-cache/bin/varnishd/cache_expire.c @@ -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) {