NestedPath will nest the cgroups based on the calling processes cgroup placing its child processes inside its own path
(suffix string)
| 38 | // NestedPath will nest the cgroups based on the calling processes cgroup |
| 39 | // placing its child processes inside its own path |
| 40 | func NestedPath(suffix string) Path { |
| 41 | paths, err := ParseCgroupFile("/proc/self/cgroup") |
| 42 | if err != nil { |
| 43 | return errorPath(err) |
| 44 | } |
| 45 | return existingPath(paths, suffix) |
| 46 | } |
| 47 | |
| 48 | // PidPath will return the correct cgroup paths for an existing process running inside a cgroup |
| 49 | // This is commonly used for the Load function to restore an existing container |
searching dependent graphs…