Lines Matching refs:pid
54 auto pid = siginfo.si_pid; in ReapOneProcess() local
55 if (pid == 0) return 0; in ReapOneProcess()
61 auto reaper = make_scope_guard([pid] { TEMP_FAILURE_RETRY(waitpid(pid, nullptr, WNOHANG)); }); in ReapOneProcess()
67 if (SubcontextChildReap(pid)) { in ReapOneProcess()
70 service = ServiceList::GetInstance().FindService(pid, &Service::pid); in ReapOneProcess()
73 name = StringPrintf("Service '%s' (pid %d)", service->name().c_str(), pid); in ReapOneProcess()
88 name = StringPrintf("Untracked pid %d", pid); in ReapOneProcess()
98 if (!service) return pid; in ReapOneProcess()
106 return pid; in ReapOneProcess()
118 pid_t pid; in WaitToBeReaped() local
119 while ((pid = ReapOneProcess()) != 0) { in WaitToBeReaped()
120 auto it = std::find(alive_pids.begin(), alive_pids.end(), pid); in WaitToBeReaped()