From 0669d6868a78d9c719558afdf88aec2fc01e955c Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 29 Mar 2023 11:07:27 +0800 Subject: [PATCH] update Signed-off-by: Weizhen Wang --- util/cgroup/cgroup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util/cgroup/cgroup.go b/util/cgroup/cgroup.go index c8edb491c98ce..bb384f73cbdf3 100644 --- a/util/cgroup/cgroup.go +++ b/util/cgroup/cgroup.go @@ -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 {