summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-09-14 12:16:13 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-09-14 12:35:22 +0200
commit44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1 (patch)
tree97ba60706417b4fcf0e96578ca2716cfce0c5042 /libpod
parentb603c7a4b91d30b33ce987740156f46804f24074 (diff)
downloadpodman-44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1.tar.gz
podman-44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1.tar.bz2
podman-44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1.zip
libpod: honor --cgroups=split also with pods
Honor --cgroups=split also when the container is running in a pod. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal_linux.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index eabe8efd2..34f84203b 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -2495,9 +2495,6 @@ func (c *Container) getOCICgroupPath() (string, error) {
}
return c.config.CgroupParent, nil
case c.config.CgroupsMode == cgroupSplit:
- if c.config.CgroupParent != "" {
- return c.config.CgroupParent, nil
- }
selfCgroup, err := utils.GetOwnCgroup()
if err != nil {
return "", err