diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-11-21 21:54:09 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-11-21 21:54:09 +0000 |
commit | c826b18437dfc460e0d360c375241ce65a7ef7f8 (patch) | |
tree | 771af9eadd4ab39228616307c359aa049b119e55 | |
parent | 22df8c29e4eb522cb6fa935db73f6bf3a0331869 (diff) | |
download | tinyproxy-c826b18437dfc460e0d360c375241ce65a7ef7f8.tar.gz tinyproxy-c826b18437dfc460e0d360c375241ce65a7ef7f8.zip |
(child_main): Cleaned up the notice string to be more clear why a
child is being closed.
-rw-r--r-- | src/child.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/child.c b/src/child.c index 9718ddb..0a27246 100644 --- a/src/child.c +++ b/src/child.c @@ -1,4 +1,4 @@ -/* $Id: child.c,v 1.6 2002-10-03 20:33:09 rjkaes Exp $ +/* $Id: child.c,v 1.7 2002-11-21 21:54:09 rjkaes Exp $ * * Handles the creation/destruction of the various children required for * processing incoming connections. @@ -200,12 +200,10 @@ child_main(struct child_s* ptr) DEBUG2("%u connections so far...", ptr->connects); - if (ptr->connects >= child_config.maxrequestsperchild) { + if (ptr->connects == child_config.maxrequestsperchild - 1) { log_message(LOG_NOTICE, - "Child has reached MaxRequestsPerChild (%u > %u). Killing child.", - ptr->connects, - child_config.maxrequestsperchild); - + "Child has reached MaxRequestsPerChild (%u). Killing child.", + ptr->connects); break; } } |