Merge pull request #143 from LK4D4/fix_parent

Fix subsystem path with abs parent
This commit is contained in:
Rohit Jnagal 2015-07-20 14:55:16 -07:00
commit 39c49e41d8
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ func (raw *data) path(subsystem string) (string, error) {
// If the cgroup name/path is absolute do not look relative to the cgroup of the init process.
if filepath.IsAbs(raw.cgroup) {
return filepath.Join(raw.root, subsystem, raw.cgroup), nil
return filepath.Join(raw.root, filepath.Base(mnt), raw.cgroup), nil
}
parent, err := raw.parent(subsystem, mnt, src)