diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-20 20:45:00 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-20 20:45:00 +0200 |
commit | 7c64bbc3875930c045d53f09e244dff8607370e6 (patch) | |
tree | 5e229dd8c6015e7c71b68929d05c32dead170eb2 /src/cgroup.c | |
parent | 68d157d894a988bd070307e0811cc78ffe7476c7 (diff) |
cgroup: consider not-realized cgroups empty when killing all processes in them
Diffstat (limited to 'src/cgroup.c')
-rw-r--r-- | src/cgroup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cgroup.c b/src/cgroup.c index 56529eb6b2..fb4047f215 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; } } |