]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 7 Oct 2010 13:07:12 +0000 (02:07 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 7 Oct 2010 13:07:12 +0000 (02:07 +1300)
Bug 3002: store initialization (-z) does not work with SMP configs

src/main.cc

index 0865e3c7855a4159d3a66df8af2d6097a2e7d24a..111e878dce84e77cdaba72b7a2b6433f2883cfbf 100644 (file)
@@ -1401,6 +1401,9 @@ SquidMain(int argc, char **argv)
         /* NOTREACHED */
     }
 
+    if (!opt_no_daemon && Config.workers > 0)
+        watch_child(argv);
+
     if (opt_create_swap_dirs) {
         /* chroot if configured to run inside chroot */
 
@@ -1419,9 +1422,6 @@ SquidMain(int argc, char **argv)
         CpuAffinityCheck();
     CpuAffinityInit();
 
-    if (!opt_no_daemon && Config.workers > 0)
-        watch_child(argv);
-
     setMaxFD();
 
     /* init comm module */