Commit 3939a22a by Serge Hallyn

cgfs: prune the init scope from paths

Just as cgmanager does, if we are calculating a task's paths, drop the trailing '/init.scope'. We don't want the container to sit under there. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 79c59e6b
...@@ -1662,6 +1662,7 @@ lxc_cgroup_process_info_getx(const char *proc_pid_cgroup_str, ...@@ -1662,6 +1662,7 @@ lxc_cgroup_process_info_getx(const char *proc_pid_cgroup_str,
entry->cgroup_path = strdup(colon2); entry->cgroup_path = strdup(colon2);
if (!entry->cgroup_path) if (!entry->cgroup_path)
goto out_error; goto out_error;
prune_init_scope(entry->cgroup_path);
*cptr = entry; *cptr = entry;
cptr = &entry->next; cptr = &entry->next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment