Lines Matching refs:pid
59 static void WaitPid(pid_t pid) { in WaitPid() argument
61 pid_t wait_pid = TEMP_FAILURE_RETRY(waitpid(pid, &wstatus, 0)); in WaitPid()
62 if (wait_pid != pid) { in WaitPid()
66 errx(1, "Unexpected pid from waitpid(): expected %d, returned %d", pid, wait_pid); in WaitPid()
87 pid_t pid; in GetUnwindInfo() local
88 if ((pid = fork()) == 0) { in GetUnwindInfo()
118 } else if (pid == -1) { in GetUnwindInfo()
121 WaitPid(pid); in GetUnwindInfo()
132 if ((pid = fork()) == 0) { in GetUnwindInfo()
163 } else if (pid == -1) { in GetUnwindInfo()
166 WaitPid(pid); in GetUnwindInfo()