Refactor cgroups file locations

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby
2014-04-18 21:14:58 -07:00
parent 87014c0328
commit 42fb2973c6
3 changed files with 75 additions and 70 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func (ns *linuxNs) Exec(container *libcontainer.Container, term Terminal, args [
func (ns *linuxNs) SetupCgroups(container *libcontainer.Container, nspid int) (cgroups.ActiveCgroup, error) {
if container.Cgroups != nil {
return container.Cgroups.Apply(nspid)
return cgroups.Apply(container.Cgroups, nspid)
}
return nil, nil
}