mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
fix cgroup bug (#380)
This commit is contained in:
parent
37c3b9f5c1
commit
8d6f6f933e
@ -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…
Reference in New Issue
Block a user