]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Fix scoping of pid variable when checking for child processes.
authorrobertc <>
Wed, 5 Feb 2003 05:25:16 +0000 (05:25 +0000)
committerrobertc <>
Wed, 5 Feb 2003 05:25:16 +0000 (05:25 +0000)
Keywords:

Fix scoping of pid variable when checking for child processes.

src/store_dir.cc

index 6b153795d017fd63bd028a140b8b2b4b138375cd..ba74804348ba4d14715370e66a0106df30dd0718 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir.cc,v 1.143 2003/02/04 22:09:03 robertc Exp $
+ * $Id: store_dir.cc,v 1.144 2003/02/04 22:25:16 robertc Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -98,8 +98,8 @@ storeCreateSwapDirectories(void)
     for (int i = 0; i < Config.cacheSwap.n_configured; i++)
        startOneStoreCreation(*INDEXSD(i));
 #ifndef _SQUID_MSWIN_
+    pid_t pid;
     do {
-       pid_t pid;
        int status;
 #ifdef _SQUID_NEXT_
        pid = wait3(&status, WNOHANG, NULL);