Loading server/mpm/beos/beos.c +4 −5 Original line number Diff line number Diff line Loading @@ -436,7 +436,7 @@ static int32 worker_thread(void * dummy) return (0); } static int make_worker(server_rec *s, int slot, time_t now) static int make_worker(server_rec *s, int slot) { thread_id tid; proc_info *my_info = (proc_info *)malloc(sizeof(proc_info)); Loading Loading @@ -488,7 +488,7 @@ static void startup_threads(int number_to_start) if (ap_child_table[i].pid) { continue; } if (make_worker(ap_server_conf, i, 0) < 0) { if (make_worker(ap_server_conf, i) < 0) { break; } --number_to_start; Loading @@ -511,7 +511,6 @@ static int hold_off_on_exponential_spawning; static void perform_idle_server_maintenance(void) { int i; time_t now = 0; int free_length; int free_slots[MAX_SPAWN_RATE]; int last_non_dead; Loading @@ -538,7 +537,7 @@ static void perform_idle_server_maintenance(void) if (free_length > 0) { for (i = 0; i < free_length; ++i) { make_worker(ap_server_conf, free_slots[i], now); make_worker(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 Loading Loading @@ -586,7 +585,7 @@ static void server_main_loop(int remaining_threads_to_start) /* we're still doing a 1-for-1 replacement of dead * children with new children */ make_worker(ap_server_conf, child_slot, time(NULL)); make_worker(ap_server_conf, child_slot); --remaining_threads_to_start; } #if APR_HAS_OTHER_CHILD Loading server/mpm/dexter/dexter.c +4 −5 Original line number Diff line number Diff line Loading @@ -767,7 +767,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; Loading Loading @@ -834,7 +834,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; Loading @@ -858,7 +858,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; Loading @@ -885,7 +884,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 Loading Loading @@ -932,7 +931,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 Loading server/mpm/experimental/perchild/perchild.c +4 −5 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading @@ -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; Loading @@ -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 Loading Loading @@ -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 Loading server/mpm/mpmt_beos/mpmt_beos.c +4 −5 Original line number Diff line number Diff line Loading @@ -491,7 +491,7 @@ static int32 child_main(void * data) return (0); } static int make_child(server_rec *s, int slot, time_t now) static int make_child(server_rec *s, int slot) { thread_id tid; Loading Loading @@ -533,7 +533,7 @@ static void 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; Loading @@ -556,7 +556,6 @@ static int hold_off_on_exponential_spawning; static void perform_idle_server_maintenance(void) { int i; time_t now = 0; int free_length; int free_slots[MAX_SPAWN_RATE]; int last_non_dead; Loading @@ -583,7 +582,7 @@ static void perform_idle_server_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 Loading Loading @@ -631,7 +630,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 Loading server/mpm/mpmt_pthread/mpmt_pthread.c +4 −5 Original line number Diff line number Diff line Loading @@ -713,7 +713,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; Loading Loading @@ -781,7 +781,7 @@ static void startup_children(int number_to_start) if (ap_scoreboard_image->parent[i].pid != 0) { continue; } if (make_child(ap_server_conf, i, 0) < 0) { if (make_child(ap_server_conf, i) < 0) { break; } --number_to_start; Loading @@ -806,7 +806,6 @@ static void perform_idle_server_maintenance(void) int i, j; int idle_thread_count; short_score *ss; time_t now = 0; int free_length; int free_slots[MAX_SPAWN_RATE]; int last_non_dead; Loading Loading @@ -898,7 +897,7 @@ static void perform_idle_server_maintenance(void) idle_thread_count, total_non_dead); } 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 Loading Loading @@ -939,7 +938,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 Loading Loading
server/mpm/beos/beos.c +4 −5 Original line number Diff line number Diff line Loading @@ -436,7 +436,7 @@ static int32 worker_thread(void * dummy) return (0); } static int make_worker(server_rec *s, int slot, time_t now) static int make_worker(server_rec *s, int slot) { thread_id tid; proc_info *my_info = (proc_info *)malloc(sizeof(proc_info)); Loading Loading @@ -488,7 +488,7 @@ static void startup_threads(int number_to_start) if (ap_child_table[i].pid) { continue; } if (make_worker(ap_server_conf, i, 0) < 0) { if (make_worker(ap_server_conf, i) < 0) { break; } --number_to_start; Loading @@ -511,7 +511,6 @@ static int hold_off_on_exponential_spawning; static void perform_idle_server_maintenance(void) { int i; time_t now = 0; int free_length; int free_slots[MAX_SPAWN_RATE]; int last_non_dead; Loading @@ -538,7 +537,7 @@ static void perform_idle_server_maintenance(void) if (free_length > 0) { for (i = 0; i < free_length; ++i) { make_worker(ap_server_conf, free_slots[i], now); make_worker(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 Loading Loading @@ -586,7 +585,7 @@ static void server_main_loop(int remaining_threads_to_start) /* we're still doing a 1-for-1 replacement of dead * children with new children */ make_worker(ap_server_conf, child_slot, time(NULL)); make_worker(ap_server_conf, child_slot); --remaining_threads_to_start; } #if APR_HAS_OTHER_CHILD Loading
server/mpm/dexter/dexter.c +4 −5 Original line number Diff line number Diff line Loading @@ -767,7 +767,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; Loading Loading @@ -834,7 +834,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; Loading @@ -858,7 +858,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; Loading @@ -885,7 +884,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 Loading Loading @@ -932,7 +931,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 Loading
server/mpm/experimental/perchild/perchild.c +4 −5 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading @@ -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; Loading @@ -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 Loading Loading @@ -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 Loading
server/mpm/mpmt_beos/mpmt_beos.c +4 −5 Original line number Diff line number Diff line Loading @@ -491,7 +491,7 @@ static int32 child_main(void * data) return (0); } static int make_child(server_rec *s, int slot, time_t now) static int make_child(server_rec *s, int slot) { thread_id tid; Loading Loading @@ -533,7 +533,7 @@ static void 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; Loading @@ -556,7 +556,6 @@ static int hold_off_on_exponential_spawning; static void perform_idle_server_maintenance(void) { int i; time_t now = 0; int free_length; int free_slots[MAX_SPAWN_RATE]; int last_non_dead; Loading @@ -583,7 +582,7 @@ static void perform_idle_server_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 Loading Loading @@ -631,7 +630,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 Loading
server/mpm/mpmt_pthread/mpmt_pthread.c +4 −5 Original line number Diff line number Diff line Loading @@ -713,7 +713,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; Loading Loading @@ -781,7 +781,7 @@ static void startup_children(int number_to_start) if (ap_scoreboard_image->parent[i].pid != 0) { continue; } if (make_child(ap_server_conf, i, 0) < 0) { if (make_child(ap_server_conf, i) < 0) { break; } --number_to_start; Loading @@ -806,7 +806,6 @@ static void perform_idle_server_maintenance(void) int i, j; int idle_thread_count; short_score *ss; time_t now = 0; int free_length; int free_slots[MAX_SPAWN_RATE]; int last_non_dead; Loading Loading @@ -898,7 +897,7 @@ static void perform_idle_server_maintenance(void) idle_thread_count, total_non_dead); } 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 Loading Loading @@ -939,7 +938,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 Loading