From: Lennart Poettering Date: Thu, 20 May 2010 18:45:00 +0000 (+0200) Subject: cgroup: consider not-realized cgroups empty when killing all processes in them X-Git-Tag: 0.git+20100605+dfd8ee-1~11^2^2~35 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c64bbc3875930c045d53f09e244dff8607370e6;p=systemd cgroup: consider not-realized cgroups empty when killing all processes in them --- diff --git a/src/cgroup.c b/src/cgroup.c index 56529eb6..fb4047f2 100644 --- a/src/cgroup.c +++ b/src/cgroup.c @@ -194,7 +194,10 @@ int cgroup_bonding_kill(CGroupBonding *b, int sig) { r = 0; goto kill_done; } else { - r = translate_error(r, errno); + if (r == ECGOTHER && errno == ENOENT) + r = ESRCH; + else + r = translate_error(r, errno); break; } }