fix cgroup bug (#380)

master
miaogaolin 4 years ago committed by GitHub
parent 37c3b9f5c1
commit 8d6f6f933e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,11 +92,12 @@ func currentCgroup() (*cgroup, error) {
continue
}
cgroups[subsys] = path.Join(cgroupDir, subsys)
if strings.Contains(subsys, ",") {
for _, k := range strings.Split(subsys, ",") {
cgroups[k] = path.Join(cgroupDir, k)
}
} else {
cgroups[subsys] = path.Join(cgroupDir, subsys)
}
}

Loading…
Cancel
Save