Lines Matching defs:pid
188 #define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
192 int pid;
388 static void worker_note_child_killed(int childnum, pid_t pid, ap_generation_t gen)
392 ap_scoreboard_image->parent[childnum].pid,
395 ap_scoreboard_image->parent[childnum].pid = 0;
398 ap_run_child_status(ap_server_conf, pid, gen, -1, MPM_CHILD_EXITED);
402 static void worker_note_child_started(int slot, pid_t pid)
404 ap_scoreboard_image->parent[slot].pid = pid;
406 ap_scoreboard_image->parent[slot].pid,
413 "pid %" APR_PID_T_FMT " taking over scoreboard slot from "
416 ap_scoreboard_image->parent[slot].pid,
420 ap_scoreboard_image->parent[slot].pid,
427 ap_register_extra_mpm_process(ap_scoreboard_image->parent[slot].pid,
696 int process_slot = ti->pid;
919 int process_slot = ti->pid;
930 ap_scoreboard_image->servers[process_slot][thread_slot].pid = ap_my_pid;
1024 my_info->pid = my_child_num;
1090 my_info->pid = my_child_num;
1404 int pid;
1421 if ((pid = fork()) == -1) {
1439 if (!pid) {
1462 if (ap_scoreboard_image->parent[slot].pid != 0) {
1467 worker_note_child_lost_slot(slot, pid);
1471 worker_note_child_started(slot, pid);
1481 if (ap_scoreboard_image->parent[i].pid != 0) {
1544 if (ps->pid != 0) { /* XXX just set all_dead_threads in outer for
1545 loop if no pid? not much else matters */
1560 && (!ps->pid /* no process in the slot */
1694 apr_proc_t pid;
1698 ap_wait_or_timeout(&exitwhy, &status, &pid, pconf, ap_server_conf);
1700 if (pid.pid != -1) {
1701 processed_status = ap_process_child_status(&pid, exitwhy, status);
1702 child_slot = ap_find_child_by_pid(&pid);
1719 "generation (pid %ld).",
1720 (long)pid.pid);
1754 else if (ap_unregister_extra_mpm_process(pid.pid, &old_gen) == 1) {
1756 pid.pid, old_gen);
1766 else if (apr_proc_other_child_alert(&pid, APR_OC_REASON_DEATH,
1777 "long lost child came home! (pid %ld)",
1778 (long)pid.pid);
1894 /* cleanup pid file on normal shutdown */
1918 /* cleanup pid file on normal shutdown */