]> err.no Git - varnish/commitdiff
Close race condition
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Jul 2006 18:03:44 +0000 (18:03 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Jul 2006 18:03:44 +0000 (18:03 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@286 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_expire.c

index 522addcda7389f132073541931fa7de5b15ed688..be50b0ee0c759d9380626e5af6e4326001e29f7a 100644 (file)
@@ -139,8 +139,8 @@ EXP_Init(void)
 {
 
        AZ(pthread_mutex_init(&exp_mtx, NULL));
-       AZ(pthread_create(&exp_thread, NULL, exp_prefetch, NULL));
-       AZ(pthread_create(&exp_thread, NULL, exp_hangman, NULL));
        exp_heap = binheap_new(NULL, object_cmp, object_update);
        assert(exp_heap != NULL);
+       AZ(pthread_create(&exp_thread, NULL, exp_prefetch, NULL));
+       AZ(pthread_create(&exp_thread, NULL, exp_hangman, NULL));
 }