Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pids: fix reading pids when running in a cgroup v1 container
OCI runtimes might mount the container cgroup at the cgroup root itself, breaking the correspondence between what is displayed in /proc/$PID/cgroup and the path under the cgroup root. When the cgroup path doesn't exist, check if the process is still alive and attempt to read the pids from the root cgroup. Signed-off-by: Giuseppe Scrivano <[email protected]>
- Loading branch information