}
}
-static int bucket_make_child_record = -1;
-static int bucket_kill_child_record = -1;
static void perform_idle_server_maintenance(apr_pool_t *p)
{
+ static int bucket_make_child_record = -1;
+ static int bucket_kill_child_record = -1;
int i;
int idle_count;
worker_score *ws;
}
for (i = 0; i < free_length; ++i) {
bucket_make_child_record++;
+ bucket_make_child_record %= num_buckets;
make_child(ap_server_conf, free_slots[i],
- bucket_make_child_record % num_buckets);
+ bucket_make_child_record);
}
/* 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