Lines Matching refs:slot
106 static void spawn_child(int slot);
197 int listener_num, num_listeners, slot;
278 for (slot=0; slot < HARD_SERVER_LIMIT; slot++) {
279 active_children += ap_scoreboard_image->parent[slot].pid != 0 &&
280 !ap_scoreboard_image->parent[slot].quiescing;
284 for (slot=0; slot < HARD_SERVER_LIMIT && active_children < ap_daemons_to_start; slot++) {
285 if (ap_scoreboard_image->parent[slot].pid == 0) {
286 spawn_child(slot);
295 for (slot=0; ap_scoreboard_image->parent[slot].pid != child_pid && slot < HARD_SERVER_LIMIT; slot++);
297 if (slot < HARD_SERVER_LIMIT) {
298 ap_scoreboard_image->parent[slot].pid = 0;
299 ap_scoreboard_image->parent[slot].quiescing = 0;
316 for (slot=0; slot<HARD_SERVER_LIMIT; slot++) {
317 kill(ap_scoreboard_image->parent[slot].pid, is_graceful ? SIGHUP : SIGTERM);
326 static void spawn_child(int slot)
335 ap_scoreboard_image->parent[slot].generation = ap_my_generation;
343 "error spawning child, slot %d", slot);
346 if (ap_max_daemons_limit < slot) {
347 ap_max_daemons_limit = slot;
350 ap_scoreboard_image->parent[slot].pid = proc_rc.codeTerminate;