chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdeeb6b
)
cgroup: downgrade error message when we cannot remove a cgroup to debug
author
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Jul 2013 00:01:29 +0000
(
02:01
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Jul 2013 21:41:03 +0000
(23:41 +0200)
Some units set KillMode=none to survive the initrd→rootfs transition. We
cannot remove their cgroups, but that shouldn't really be considered an
issue, so let's downgrade the error message.
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index c7f1e77c6c9813e25b0b60a83a22dffc4845b265..b5d13478561831124abc69301c8094b2d373c1c4 100644
(file)
--- a/
src/core/cgroup.c
+++ b/
src/core/cgroup.c
@@
-533,7
+533,7
@@
void unit_destroy_cgroup(Unit *u) {
r = cg_trim_with_mask(u->cgroup_mask, u->cgroup_path, true);
if (r < 0)
- log_
error
("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r));
+ log_
debug
("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r));
hashmap_remove(u->manager->cgroup_unit, u->cgroup_path);