]> err.no Git - varnish/commitdiff
load VCL earlier
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Jul 2006 14:18:34 +0000 (14:18 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Jul 2006 14:18:34 +0000 (14:18 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@298 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_main.c

index 236fe7d7715c54789d9cc2b9e266cd3f9dd39425..4fada869a2dff50425e10814ec4f1a9e0b3585ef 100644 (file)
@@ -92,7 +92,9 @@ static struct cli_proto cli_proto[] = {
        { NULL }
 };
 
-/*--------------------------------------------------------------------*/
+/*--------------------------------------------------------------------
+ * XXX: Think more about which order we start things
+ */
 
 void
 child_main(void)
@@ -108,6 +110,7 @@ child_main(void)
        setbuf(stderr, NULL);
        printf("Child starts\n");
 
+       CVCL_Load(heritage.vcl_file, "boot");
        AZ(pthread_mutex_init(&sessmtx, NULL));
        VBE_Init();
        VSL_Init();
@@ -125,7 +128,6 @@ child_main(void)
        if (stevedore->open != NULL)
                stevedore->open(stevedore);
 
-       CVCL_Load(heritage.vcl_file, "boot");
        cli = cli_setup(eb, heritage.fds[2], heritage.fds[1], 0, cli_proto);
 
        evtimer_set(&ev_keepalive, timer_keepalive, NULL);