summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-02-10 18:27:04 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-02-12 09:53:40 +0100
commit66dc8355df0904a6ef1e3abe6808d95348c07d93 (patch)
tree4f1ccda0797afc378d4d4515fd79d7e3eb3c3304 /utils
parent5bae803757e008a959790bc4489c71fe446edb7c (diff)
downloadpodman-66dc8355df0904a6ef1e3abe6808d95348c07d93.tar.gz
podman-66dc8355df0904a6ef1e3abe6808d95348c07d93.tar.bz2
podman-66dc8355df0904a6ef1e3abe6808d95348c07d93.zip
utils: create parent cgroups
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> (cherry picked from commit 1b5f3ed24d367cc30432b8a260d1e9465b979c2b)
Diffstat (limited to 'utils')
-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
}