Skip to content

Commit

Permalink
utils: create parent cgroups
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Feb 11, 2021
1 parent 9196a5c commit 1b5f3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils_supported.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func moveUnderCgroup(cgroup, subtree string, processes []uint32) error {
parentCgroup = parts[2]
}
newCgroup := filepath.Join(cgroupRoot, parentCgroup, subtree)
if err := os.Mkdir(newCgroup, 0755); err != nil && !os.IsExist(err) {
if err := os.MkdirAll(newCgroup, 0755); err != nil && !os.IsExist(err) {
return err
}

Expand Down

0 comments on commit 1b5f3ed

Please sign in to comment.