cgroups/cgfsng: rework cgfsng_unfreeze()

parent 1d0ef851
......@@ -2181,13 +2181,14 @@ __cgfsng_ops static const char *cgfsng_get_cgroup(struct cgroup_ops *ops,
struct hierarchy *h;
h = get_hierarchy(ops, controller);
if (!h) {
WARN("Failed to find hierarchy for controller \"%s\"",
if (!h)
return log_warn_errno(NULL,
ENOENT, "Failed to find hierarchy for controller \"%s\"",
controller ? controller : "(null)");
return NULL;
}
return h->container_full_path ? h->container_full_path + strlen(h->mountpoint) : NULL;
return h->container_full_path
? h->container_full_path + strlen(h->mountpoint)
: NULL;
}
/* Given a cgroup path returned from lxc_cmd_get_cgroup_path, build a full path,
......
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