aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-09-14 12:16:13 +0200
committerMatthew Heon <mheon@redhat.com>2021-09-16 11:00:05 -0400
commit5532cd488b0dd174ebf5675991b4fe8fb1ff9edd (patch)
treecaa19e54d9515d922d1f8c3dc73ad27d67366c1b /libpod
parente07dccc3ad33c9018466b40056de5f002cd11271 (diff)
downloadpodman-5532cd488b0dd174ebf5675991b4fe8fb1ff9edd.tar.gz
podman-5532cd488b0dd174ebf5675991b4fe8fb1ff9edd.tar.bz2
podman-5532cd488b0dd174ebf5675991b4fe8fb1ff9edd.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 ae029dc62..4194a0d93 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -2490,9 +2490,6 @@ func (c *Container) getOCICgroupPath() (string, error) {
case c.config.NoCgroups:
return "", nil
case c.config.CgroupsMode == cgroupSplit:
- if c.config.CgroupParent != "" {
- return c.config.CgroupParent, nil
- }
selfCgroup, err := utils.GetOwnCgroup()
if err != nil {
return "", err