projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fd3a10
)
cgroup: extend comment on what unit_release_cgroup() is for
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Nov 2018 00:07:14 +0000
(
01:07
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Nov 2018 12:41:37 +0000
(13:41 +0100)
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index
988813c
..
3803231
100644
(file)
--- 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);