cgroup: the root cgroup is always populated
This commit is contained in:
parent
6f883237f1
commit
6fd6650737
|
@ -918,6 +918,10 @@ int cg_is_empty_recursive(const char *controller, const char *path) {
|
||||||
|
|
||||||
assert(path);
|
assert(path);
|
||||||
|
|
||||||
|
/* The root cgroup is always populated */
|
||||||
|
if (controller && (isempty(path) || path_equal(path, "/")))
|
||||||
|
return 0;
|
||||||
|
|
||||||
r = cg_is_empty(controller, path);
|
r = cg_is_empty(controller, path);
|
||||||
if (r <= 0)
|
if (r <= 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in New Issue