Lines Matching defs:pid
505 pid_t pid;
541 pid_t pid = fork();
542 if (pid == -1) {
545 } else if (pid == 0) {
564 child_proc.pid = pid;
593 if (child_proc.pid != 0) {
603 if (child_proc.pid != 0) {
605 kill(child_proc.pid, SIGKILL);
617 if (child_proc_list[i].pid == exit_pid) {
680 static TestResult WaitForOneChild(pid_t pid) {
682 pid_t result = TEMP_FAILURE_RETRY(waitpid(pid, &exit_status, 0));
685 if (result != pid || WEXITSTATUS(exit_status) != 0) {
696 kill(child_proc.pid, SIGKILL);
697 WaitForOneChild(child_proc.pid);