Lines Matching refs:pid
611 pid_t pid; member
653 pid_t pid = fork(); in RunChildProcess() local
654 if (pid == -1) { in RunChildProcess()
657 } else if (pid == 0) { in RunChildProcess()
675 child_proc.pid = pid; in RunChildProcess()
692 if (child_proc.pid != 0) { in HandleSignals()
706 if (child_proc.pid != 0) { in HandleSignals()
709 kill(child_proc.pid, SIGKILL); in HandleSignals()
720 if (child_proc_list[i].pid == exit_pid) { in CheckChildProcExit()
810 static TestResult WaitForOneChild(pid_t pid) { in WaitForOneChild() argument
812 pid_t result = TEMP_FAILURE_RETRY(waitpid(pid, &exit_status, 0)); in WaitForOneChild()
815 if (result != pid || WEXITSTATUS(exit_status) != 0) { in WaitForOneChild()
829 kill(child_proc.pid, SIGKILL); in CollectChildTestResult()
830 WaitForOneChild(child_proc.pid); in CollectChildTestResult()