From 383e7a121f6bcf74d2f02aea12db9423dc56d20b Mon Sep 17 00:00:00 2001 From: Manoj Kasichainula Date: Wed, 21 Jul 1999 20:44:41 +0000 Subject: [PATCH] Some fixing for startup of children after a graceful restart, so that the processes can start faster. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83479 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/dexter/dexter.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/mpm/dexter/dexter.c b/server/mpm/dexter/dexter.c index db012f48de..de5a24a101 100644 --- a/server/mpm/dexter/dexter.c +++ b/server/mpm/dexter/dexter.c @@ -1113,7 +1113,7 @@ static int make_child(server_rec *s, int slot, time_t now) /* ZZZ */ } /* start up a bunch of children */ -static void startup_children(int number_to_start) +static int startup_children(int number_to_start) { int i; @@ -1126,6 +1126,7 @@ static void startup_children(int number_to_start) } --number_to_start; } + return number_to_start; } @@ -1238,8 +1239,8 @@ static void server_main_loop(int remaining_children_to_start) * generation of children needed to be reaped... so assume * they're all done, and pick up the slack if any is left. */ - startup_children(remaining_children_to_start); - remaining_children_to_start = 0; + remaining_children_to_start = \ + startup_children(remaining_children_to_start); /* In any event we really shouldn't do the code below because * few of the servers we just started are in the IDLE state * yet, so we'd mistakenly create an extra server. @@ -1298,8 +1299,8 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s) */ remaining_children_to_start = ap_num_daemons; if (!is_graceful) { - startup_children(remaining_children_to_start); - remaining_children_to_start = 0; + remaining_children_to_start = \ + startup_children(remaining_children_to_start); } else { /* give the system some time to recover before kicking into -- 2.50.1