summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-11-21 21:54:09 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-11-21 21:54:09 +0000
commitc826b18437dfc460e0d360c375241ce65a7ef7f8 (patch)
tree771af9eadd4ab39228616307c359aa049b119e55
parent22df8c29e4eb522cb6fa935db73f6bf3a0331869 (diff)
(child_main): Cleaned up the notice string to be more clear why a
child is being closed.
-rw-r--r--src/child.c10
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;
}
}