cgroup: the root cgroup is always populated

This commit is contained in:
Lennart Poettering 2015-09-01 18:36:28 +02:00
parent 6f883237f1
commit 6fd6650737
1 changed files with 4 additions and 0 deletions

View File

@ -918,6 +918,10 @@ int cg_is_empty_recursive(const char *controller, const char *path) {
assert(path);
/* The root cgroup is always populated */
if (controller && (isempty(path) || path_equal(path, "/")))
return 0;
r = cg_is_empty(controller, path);
if (r <= 0)
return r;