Merge pull request #589 from Mashimiao/cgroup-systemd-add-freezer-set

cgroup: Add freeze Set When calls systemd to Apply
This commit is contained in:
Michael Crosby 2015-05-15 10:23:38 -07:00
commit 7adbe0f728
1 changed files with 4 additions and 2 deletions

View File

@ -314,11 +314,13 @@ func joinCpu(c *configs.Cgroup, pid int) error {
}
func joinFreezer(c *configs.Cgroup, pid int) error {
if _, err := join(c, "freezer", pid); err != nil && !cgroups.IsNotFound(err) {
path, err := join(c, "freezer", pid)
if err != nil && !cgroups.IsNotFound(err) {
return err
}
return nil
freezer := subsystems["freezer"]
return freezer.Set(path, c)
}
func joinNetPrio(c *configs.Cgroup, pid int) error {