chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: don't ever try to destroy the cgroup of the root slice
[elogind.git]
/
src
/
core
/
cgroup.c
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index b9ef00c6174d487d6ed4e1643cbb5e49f29aab66..d0f36cb18ed8d29450d820c5f7277b3d69b03e48 100644
(file)
--- a/
src/core/cgroup.c
+++ b/
src/core/cgroup.c
@@
-531,7
+531,7
@@
void unit_destroy_cgroup(Unit *u) {
if (!u->cgroup_path)
return;
if (!u->cgroup_path)
return;
- r = cg_trim_with_mask(u->cgroup_mask, u->cgroup_path,
true
);
+ r = cg_trim_with_mask(u->cgroup_mask, u->cgroup_path,
!unit_has_name(u, SPECIAL_ROOT_SLICE)
);
if (r < 0)
log_debug("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r));
if (r < 0)
log_debug("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r));