Lines Matching refs:Pid
249 Process Process::Open(ProcessId pid) {
250 if (pid == GetCurrentProcId())
254 return Process(pid);
258 Process Process::OpenWithExtraPrivileges(ProcessId pid) {
260 return Open(pid);
291 ProcessId Process::Pid() const {
322 pid_t pid = HANDLE_EINTR(waitpid(process_, NULL, WNOHANG));
323 if (pid == process_) {
327 if (pid == -1) {
330 // the same pid, causing the process state to get cleaned up.