diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-01-12 12:01:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 12:01:34 -0500 |
commit | 6e8100cf2e70c8c6b5a8504298d1e295a288a0b1 (patch) | |
tree | df3124bb1235b71a0e09b8f6009f1a3bce48f039 /libpod/container_top.go | |
parent | 198c91c2ea0c82d0ffc82eba86c31224c69e84bb (diff) | |
parent | 04e0687da14070ea3ff208687d4f749d5dc319a0 (diff) | |
download | podman-6e8100cf2e70c8c6b5a8504298d1e295a288a0b1.tar.gz podman-6e8100cf2e70c8c6b5a8504298d1e295a288a0b1.tar.bz2 podman-6e8100cf2e70c8c6b5a8504298d1e295a288a0b1.zip |
Merge pull request #211 from mheon/wireup_backends
Wire up API for CGroup Parent
Diffstat (limited to 'libpod/container_top.go')
-rw-r--r-- | libpod/container_top.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_top.go b/libpod/container_top.go index 020773488..0eb1d0c41 100644 --- a/libpod/container_top.go +++ b/libpod/container_top.go @@ -25,7 +25,7 @@ func (c *Container) GetContainerPids() ([]string, error) { // Gets the pids for a container without locking. should only be called from a func where // locking has already been established. func (c *Container) getContainerPids() ([]string, error) { - taskFile := filepath.Join("/sys/fs/cgroup/pids", CgroupParent, fmt.Sprintf("libpod-conmon-%s", c.ID()), c.ID(), "tasks") + taskFile := filepath.Join("/sys/fs/cgroup/pids", c.config.CgroupParent, fmt.Sprintf("libpod-conmon-%s", c.ID()), c.ID(), "tasks") logrus.Debug("reading pids from ", taskFile) content, err := ioutil.ReadFile(taskFile) if err != nil { |