(child_main): Fixed an off-by-one error with the maxrequestsperchild

variable.  [Fix proposed by Yannick Koehler]
This commit is contained in:
Robert James Kaes 2003-08-06 20:23:06 +00:00
parent 4beea1ac67
commit 6a11a9c909

View File

@ -1,4 +1,4 @@
/* $Id: child.c,v 1.11 2003-05-31 23:02:21 rjkaes Exp $ /* $Id: child.c,v 1.11.2.1 2003-08-06 20:23:06 rjkaes Exp $
* *
* Handles the creation/destruction of the various children required for * Handles the creation/destruction of the various children required for
* processing incoming connections. * processing incoming connections.
@ -212,7 +212,7 @@ child_main(struct child_s* ptr)
DEBUG2("%u connections so far...", ptr->connects); DEBUG2("%u connections so far...", ptr->connects);
if (ptr->connects == child_config.maxrequestsperchild - 1) { if (ptr->connects == child_config.maxrequestsperchild) {
log_message(LOG_NOTICE, log_message(LOG_NOTICE,
"Child has reached MaxRequestsPerChild (%u). Killing child.", "Child has reached MaxRequestsPerChild (%u). Killing child.",
ptr->connects); ptr->connects);