From cde3a54d89c0609778fd9db280d8e4c982f77d81 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 4 Jul 2006 14:18:34 +0000 Subject: [PATCH] load VCL earlier git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@298 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_main.c b/varnish-cache/bin/varnishd/cache_main.c index 236fe7d7..4fada869 100644 --- a/varnish-cache/bin/varnishd/cache_main.c +++ b/varnish-cache/bin/varnishd/cache_main.c @@ -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); -- 2.39.5