Home
last modified time | relevance | path

Searched refs:pidfd (Results 1 – 3 of 3) sorted by relevance

/art/libarttools/
Dtools.cc234 unique_fd pidfd = PidfdOpen(pid, /*flags=*/0); in EnsureNoProcessInDir() local
235 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()
/art/runtime/
Dexec_utils.cc181 unique_fd pidfd, in WaitChildWithTimeout() argument
192 pfd.fd = pidfd.get(); in WaitChildWithTimeout()
196 pidfd.reset(); in WaitChildWithTimeout()
286 unique_fd pidfd = PidfdOpen(pid); in ExecAndReturnResult() local
287 if (pidfd.get() >= 0) { in ExecAndReturnResult()
289 WaitChildWithTimeout(pid, std::move(pidfd), arg_vector, timeout_sec * 1000, error_msg); in ExecAndReturnResult()
Dexec_utils_test.cc99 android::base::unique_fd pidfd = ExecUtils::PidfdOpen(pid); in PidfdOpen() local
100 CHECK_GE(pidfd.get(), 0) << strerror(errno); in PidfdOpen()
101 return pidfd; in PidfdOpen()