X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fcgroup.c;h=af048354e1fa71d23fde70783150183bf45c69f3;hp=70fc925b4dfedde9bcfde694acf600f545af1b76;hb=dab5bf859900c0abdbf78c584e4aed42a19768cd;hpb=eb5800026d5a6754514fb8f8a8561b49974fc879;ds=inline diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 70fc925b4..af048354e 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -791,8 +791,10 @@ void unit_destroy_cgroup(Unit *u) { return; r = cg_trim_everywhere(u->manager->cgroup_supported, u->cgroup_path, !unit_has_name(u, SPECIAL_ROOT_SLICE)); - if (r < 0) + if (r < 0) { log_debug_errno(r, "Failed to destroy cgroup %s: %m", u->cgroup_path); + return; + } hashmap_remove(u->manager->cgroup_unit, u->cgroup_path);