From: Alex Rousskov Date: Thu, 4 Mar 2010 21:05:11 +0000 (-0700) Subject: Explained that we loop to collect all stopped kids before we go to sleep. X-Git-Tag: SQUID_3_2_0_1~93^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86b91dcdc4922c414eb6262a3bccde2afe0bf82a;p=thirdparty%2Fsquid.git Explained that we loop to collect all stopped kids before we go to sleep. --- diff --git a/src/main.cc b/src/main.cc index 474433a2e6..8d5830ec05 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1864,7 +1864,7 @@ watch_child(char *argv[]) pid = waitpid(-1, &status, 0); #endif - /* XXX: Why loop? Should not we only process one terminated kid? */ + // Loop to collect all stopped kids before we go to sleep below. do { Kid* kid = TheKids.find(pid);