From: wessels <> Date: Fri, 31 Oct 1997 03:38:16 +0000 (+0000) Subject: wait_child() munging X-Git-Tag: SQUID_3_0_PRE1~4611 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8e69881b1b6c1e9e4a132eb4c3855bb45307154;p=thirdparty%2Fsquid.git wait_child() munging --- diff --git a/src/main.cc b/src/main.cc index b2381c3abc..b188935cd7 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.183 1997/10/30 18:27:20 wessels Exp $ + * $Id: main.cc,v 1.184 1997/10/30 20:38:16 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -755,10 +755,10 @@ watch_child(char *argv[]) time(&stop); if (stop - start < 10) failcount++; + else + failcount = 0; if (failcount == 5) exit(1); - debug(0, 0) ("exit status = %d\n", WEXITSTATUS(status)); - debug(0, 0) ("term sig = %d\n", WTERMSIG(status)); if (WIFEXITED(status)) if (WEXITSTATUS(status) == 0) exit(0);