Lines Matching refs:pid
187 bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) {
190 *handle = pid;
194 bool OpenPrivilegedProcessHandle(ProcessId pid, ProcessHandle* handle) {
197 return OpenProcessHandle(pid, handle);
200 bool OpenProcessHandleWithAccess(ProcessId pid,
205 return OpenProcessHandle(pid, handle);
234 pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG));
235 if (pid == process_id) {
239 if (pid == -1) {
242 // the same pid, causing the process state to get cleaned up.
505 pid_t pid;
512 pid = fork();
513 if (pid < 0) {
517 if (pid == 0) {
595 pid_t ret = HANDLE_EINTR(waitpid(pid, 0, 0));
600 *process_handle = pid;
859 pid_t pid;
874 switch (pid = fork()) {
944 bool success = WaitForExitCode(pid, &exit_code);