Skip to content

Commit

Permalink
Merge pull request #1399 from avagin/cr-cgroup
Browse files Browse the repository at this point in the history
restore: apply resource limits
  • Loading branch information
Mrunal Patel committed Apr 13, 2017
2 parents f8ce01d + 57ef30a commit 7814a0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcontainer/container_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7814a0d

Please sign in to comment.