summaryrefslogtreecommitdiff
path: root/src/core/cgroup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-01 18:32:07 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-01 18:37:01 +0200
commit6f883237f1b8a96ec0ea354866e033b6fcea9506 (patch)
treea1f934ca47cc8e6967d09a4fbd9389fc83d824ba /src/core/cgroup.c
parente155a0aa04e899a535fc3b6a98ef6141181d710f (diff)
cgroup: drop "ignore_self" argument from cg_is_empty()
In all cases where the function (or cg_is_empty_recursive()) ignoring the calling process is actually wrong, as a process keeps a cgroup busy regardless if its the current one or another. Hence, let's simplify things and drop the "ignore_self" parameter.
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r--src/core/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index da6de68637..aafd75f424 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -1030,7 +1030,7 @@ int manager_notify_cgroup_empty(Manager *m, const char *cgroup) {
if (!u)
return 0;
- r = cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, true);
+ r = cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path);
if (r <= 0)
return r;