Lines Matching refs:pid
587 pid_t pid; member
626 pid_t pid = fork(); in RunChildProcess() local
627 if (pid == -1) { in RunChildProcess()
630 } else if (pid == 0) { in RunChildProcess()
648 child_proc.pid = pid; in RunChildProcess()
664 if (child_proc.pid != 0) { in HandleSignals()
675 if (child_proc.pid != 0) { in HandleSignals()
677 kill(child_proc.pid, SIGKILL); in HandleSignals()
688 if (child_proc_list[i].pid == exit_pid) { in CheckChildProcExit()
776 static TestResult WaitForOneChild(pid_t pid) { in WaitForOneChild() argument
778 pid_t result = TEMP_FAILURE_RETRY(waitpid(pid, &exit_status, 0)); in WaitForOneChild()
781 if (result != pid || WEXITSTATUS(exit_status) != 0) { in WaitForOneChild()
792 kill(child_proc.pid, SIGKILL); in CollectChildTestResult()
793 WaitForOneChild(child_proc.pid); in CollectChildTestResult()