Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei authored and ti-chi-bot committed Mar 29, 2023
1 parent 0c22d93 commit 0669d68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/cgroup/cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func detectControlPath(cgroupFilePath string, controller string) (string, error)
unifiedPathIfFound = string(fields[2])
} else if f1 == controller {
var result []byte
// In some case, the cgroup path contains `:`. We need to join them back.
if len(fields) > 3 {
result = bytes.Join(fields[2:], []byte(":"))
} else {
Expand Down

0 comments on commit 0669d68

Please sign in to comment.