Merge pull request #3546 from kolyshkin/criu-add-ignore-cgroup

checkpoint/restore: implement --manage-cgroups-mode ignore
This commit is contained in:
Mrunal Patel
2023-01-26 16:38:54 -08:00
committed by GitHub
7 changed files with 145 additions and 101 deletions
+2 -5
View File
@@ -1560,11 +1560,8 @@ func (c *Container) criuApplyCgroups(pid int, req *criurpc.CriuReq) error {
return err
}
if cgroups.IsCgroup2UnifiedMode() {
return nil
}
// the stuff below is cgroupv1-specific
// TODO(@kolyshkin): should we use c.cgroupManager.GetPaths()
// instead of reading /proc/pid/cgroup?
path := fmt.Sprintf("/proc/%d/cgroup", pid)
cgroupsPaths, err := cgroups.ParseCgroupFile(path)
if err != nil {