Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Mar 29, 2023
1 parent 5520e90 commit f355d2b
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 f355d2b

Please sign in to comment.