Lines Matching defs:pid
150 #define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
307 int pid;
602 static void event_note_child_killed(int childnum, pid_t pid, ap_generation_t gen)
606 ap_scoreboard_image->parent[childnum].pid,
609 ap_scoreboard_image->parent[childnum].pid = 0;
612 ap_run_child_status(ap_server_conf, pid, gen, -1, MPM_CHILD_EXITED);
616 static void event_note_child_started(int slot, pid_t pid)
618 ap_scoreboard_image->parent[slot].pid = pid;
620 ap_scoreboard_image->parent[slot].pid,
627 "pid %" APR_PID_T_FMT " taking over scoreboard slot from "
630 ap_scoreboard_image->parent[slot].pid,
634 ap_scoreboard_image->parent[slot].pid,
641 ap_register_extra_mpm_process(ap_scoreboard_image->parent[slot].pid,
1737 int process_slot = ti->pid;
2148 int process_slot = ti->pid;
2155 ap_scoreboard_image->servers[process_slot][thread_slot].pid = ap_my_pid;
2261 my_info->pid = my_child_num;
2377 my_info->pid = my_child_num;
2675 int pid;
2692 if ((pid = fork()) == -1) {
2711 if (!pid) {
2734 if (ap_scoreboard_image->parent[slot].pid != 0) {
2739 event_note_child_lost_slot(slot, pid);
2744 event_note_child_started(slot, pid);
2754 if (ap_scoreboard_image->parent[i].pid != 0) {
2818 if (ps->pid != 0) { /* XXX just set all_dead_threads in outer
2819 for loop if no pid? not much else matters */
2835 && (!ps->pid /* no process in the slot */
2955 apr_proc_t pid;
2959 ap_wait_or_timeout(&exitwhy, &status, &pid, pconf, ap_server_conf);
2961 if (pid.pid != -1) {
2962 processed_status = ap_process_child_status(&pid, exitwhy, status);
2963 child_slot = ap_find_child_by_pid(&pid);
2980 "generation (pid %ld).",
2981 (long)pid.pid);
3016 else if (ap_unregister_extra_mpm_process(pid.pid, &old_gen) == 1) {
3019 pid.pid, old_gen);
3029 else if (apr_proc_other_child_alert(&pid, APR_OC_REASON_DEATH,
3040 "long lost child came home! (pid %ld)",
3041 (long) pid.pid);
3152 /* cleanup pid file on normal shutdown */
3175 /* cleanup pid file on normal shutdown */