summaryrefslogtreecommitdiff
path: root/server/mpm/experimental/perchild
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2001-02-07 13:17:32 +0000
committerJeff Trawick <trawick@apache.org>2001-02-07 13:17:32 +0000
commitc0fdcbbcf3903d1a3a28adfaeee64e13ec96c9dc (patch)
tree2d135f7cda0cd63b18edc75c5d285180f4845d1d /server/mpm/experimental/perchild
parentf9b9fbe7b840f09277e0668d63da03df0cae4b0e (diff)
downloadhttpd-c0fdcbbcf3903d1a3a28adfaeee64e13ec96c9dc.tar.gz
get rid of some cruft related to a now-unused parameter to
make_child() and unnecessary calls to time() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88009 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/experimental/perchild')
-rw-r--r--server/mpm/experimental/perchild/perchild.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c
index b2cb6d393a..d3a67c215a 100644
--- a/server/mpm/experimental/perchild/perchild.c
+++ b/server/mpm/experimental/perchild/perchild.c
@@ -926,7 +926,7 @@ static void child_main(int child_num_arg)
}
}
-static int make_child(server_rec *s, int slot, time_t now)
+static int make_child(server_rec *s, int slot)
{
int pid;
@@ -990,7 +990,7 @@ static int startup_children(int number_to_start)
if (ap_child_table[i].pid) {
continue;
}
- if (make_child(ap_server_conf, i, 0) < 0) {
+ if (make_child(ap_server_conf, i) < 0) {
break;
}
--number_to_start;
@@ -1014,7 +1014,6 @@ static int hold_off_on_exponential_spawning;
static void perform_child_maintenance(void)
{
int i;
- time_t now = 0;
int free_length;
int free_slots[MAX_SPAWN_RATE];
int last_non_dead = -1;
@@ -1041,7 +1040,7 @@ static void perform_child_maintenance(void)
if (free_length > 0) {
for (i = 0; i < free_length; ++i) {
- make_child(ap_server_conf, free_slots[i], now);
+ make_child(ap_server_conf, free_slots[i]);
}
/* the next time around we want to spawn twice as many if this
* wasn't good enough, but not if we've just done a graceful
@@ -1092,7 +1091,7 @@ static void server_main_loop(int remaining_children_to_start)
/* we're still doing a 1-for-1 replacement of dead
* children with new children
*/
- make_child(ap_server_conf, child_slot, time(NULL));
+ make_child(ap_server_conf, child_slot);
--remaining_children_to_start;
}
#if APR_HAS_OTHER_CHILD