summaryrefslogtreecommitdiff
path: root/src/cgroup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-20 20:45:00 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-20 20:45:00 +0200
commit7c64bbc3875930c045d53f09e244dff8607370e6 (patch)
tree5e229dd8c6015e7c71b68929d05c32dead170eb2 /src/cgroup.c
parent68d157d894a988bd070307e0811cc78ffe7476c7 (diff)
cgroup: consider not-realized cgroups empty when killing all processes in them
Diffstat (limited to 'src/cgroup.c')
-rw-r--r--src/cgroup.c5
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;
}
}