Merge pull request #1399 from avagin/cr-cgroup

restore: apply resource limits
This commit is contained in:
Mrunal Patel 2017-04-13 11:28:28 -07:00 committed by GitHub
commit 7814a0d14b
1 changed files with 4 additions and 0 deletions

View File

@ -1007,6 +1007,10 @@ func (c *linuxContainer) criuApplyCgroups(pid int, req *criurpc.CriuReq) error {
return err
}
if err := c.cgroupManager.Set(c.config); err != nil {
return newSystemError(err)
}
path := fmt.Sprintf("/proc/%d/cgroup", pid)
cgroupsPaths, err := cgroups.ParseCgroupFile(path)
if err != nil {