From: Lennart Poettering Date: Fri, 23 Nov 2018 00:07:14 +0000 (+0100) Subject: cgroup: extend comment on what unit_release_cgroup() is for X-Git-Tag: v240~225^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0d538815b72563eb227fa21a67e78f5b290bfe;p=thirdparty%2Fsystemd.git cgroup: extend comment on what unit_release_cgroup() is for --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 988813c38bf..38032311416 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -2005,7 +2005,8 @@ int unit_realize_cgroup(Unit *u) { void unit_release_cgroup(Unit *u) { assert(u); - /* Forgets all cgroup details for this cgroup */ + /* Forgets all cgroup details for this cgroup — but does *not* destroy the cgroup. This is hence OK to call + * when we close down everything for reexecution, where we really want to leave the cgroup in place. */ if (u->cgroup_path) { (void) hashmap_remove(u->manager->cgroup_unit, u->cgroup_path);