Skip to content

Commit

Permalink
fix cgroup bug (zeromicro#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
miaogaolin authored Jan 13, 2021
1 parent 37c3b9f commit 8d6f6f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/stat/internal/cgroup_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 8d6f6f9

Please sign in to comment.