Merge pull request #497 from Mashimiao/use-unified-subsystems

cgroups/systemd: Use unified subsystems
This commit is contained in:
Alexander Morozov
2015-03-31 23:06:54 -07:00
+1 -10
View File
@@ -218,16 +218,7 @@ func (m *Manager) Apply(pid int) error {
}
paths := make(map[string]string)
for _, sysname := range []string{
"devices",
"memory",
"cpu",
"cpuset",
"cpuacct",
"blkio",
"perf_event",
"freezer",
} {
for sysname := range subsystems {
subsystemPath, err := getSubsystemPath(m.Cgroups, sysname)
if err != nil {
// Don't fail if a cgroup hierarchy was not found, just skip this subsystem