From c826b18437dfc460e0d360c375241ce65a7ef7f8 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Thu, 21 Nov 2002 21:54:09 +0000 Subject: (child_main): Cleaned up the notice string to be more clear why a child is being closed. --- src/child.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3