summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-02-10 18:27:04 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-02-11 09:38:36 +0100
commit1b5f3ed24d367cc30432b8a260d1e9465b979c2b (patch)
tree6e2ffab2b074981028ee329b53750e3a68b938f7
parent9196a5ce36a559cc0d10230194f93a61b40e870a (diff)
downloadpodman-1b5f3ed24d367cc30432b8a260d1e9465b979c2b.tar.gz
podman-1b5f3ed24d367cc30432b8a260d1e9465b979c2b.tar.bz2
podman-1b5f3ed24d367cc30432b8a260d1e9465b979c2b.zip
utils: create parent cgroups
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--utils/utils_supported.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utils_supported.go b/utils/utils_supported.go
index 9a1c82ee6..7a0417c6c 100644
--- a/utils/utils_supported.go
+++ b/utils/utils_supported.go
@@ -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
}