Searched refs:pidfd (Results 1 – 3 of 3) sorted by relevance
234 unique_fd pidfd = PidfdOpen(pid, /*flags=*/0); in EnsureNoProcessInDir() local235 if (pidfd < 0) { in EnsureNoProcessInDir()255 pollfd.fd = pidfd.get(); in EnsureNoProcessInDir()258 running_processes[pidfd.get()] = std::make_pair(pid, std::move(name)); in EnsureNoProcessInDir()259 pidfds.push_back(std::move(pidfd)); in EnsureNoProcessInDir()296 for (const auto& [pidfd, pair] : running_processes) { in EnsureNoProcessInDir()
181 unique_fd pidfd, in WaitChildWithTimeout() argument192 pfd.fd = pidfd.get(); in WaitChildWithTimeout()196 pidfd.reset(); in WaitChildWithTimeout()286 unique_fd pidfd = PidfdOpen(pid); in ExecAndReturnResult() local287 if (pidfd.get() >= 0) { in ExecAndReturnResult()289 WaitChildWithTimeout(pid, std::move(pidfd), arg_vector, timeout_sec * 1000, error_msg); in ExecAndReturnResult()
99 android::base::unique_fd pidfd = ExecUtils::PidfdOpen(pid); in PidfdOpen() local100 CHECK_GE(pidfd.get(), 0) << strerror(errno); in PidfdOpen()101 return pidfd; in PidfdOpen()