From 7c64bbc3875930c045d53f09e244dff8607370e6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 20 May 2010 20:45:00 +0200 Subject: [PATCH] cgroup: consider not-realized cgroups empty when killing all processes in them --- src/cgroup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- 2.39.5