From: robertc <> Date: Wed, 5 Feb 2003 05:25:16 +0000 (+0000) Subject: Summary: Fix scoping of pid variable when checking for child processes. X-Git-Tag: SQUID_3_0_PRE1~397 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a1c8f2cffe6d3c351166bf2c88f6fde16f1588f;p=thirdparty%2Fsquid.git Summary: Fix scoping of pid variable when checking for child processes. Keywords: Fix scoping of pid variable when checking for child processes. --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 6b153795d0..ba74804348 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -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);