Lines Matching refs:pid
109 bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) {
112 *handle = pid;
116 bool OpenPrivilegedProcessHandle(ProcessId pid, ProcessHandle* handle) {
119 return OpenProcessHandle(pid, handle);
146 pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG));
147 if (pid == process_id) {
315 // return a valid pid. If IPC fails in the child, the parent will have to wait
318 pid_t pid = fork();
319 switch (pid) {
321 return pid;
326 return pid;
333 return pid;
342 return pid;
347 return pid;
353 return pid;
378 pid_t pid;
381 pid = fork();
388 pid = fork_and_get_task(task_handle);
391 pid = fork();
393 if (pid < 0)
396 if (pid == 0) {
445 pid_t ret = HANDLE_EINTR(waitpid(pid, 0, 0));
450 *process_handle = pid;
632 pid_t pid;
641 switch (pid = fork()) {
707 bool success = WaitForExitCode(pid, &exit_code);
754 result = KillProcess((*entry).pid, exit_code, true) && result;