summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-06 19:27:59 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-07 15:14:36 +0100
commit6e8314c420eb375847c9e526745c2caec802399d (patch)
tree5c37a0e15306213fb73c0507ecb023a4ef05f267
parent5f41d1f10fd97e93517b6a762b1bec247f4d1171 (diff)
cgroup: make sure to properly send SIGCONT to all processes of a cgroup if that's requested
-rw-r--r--src/shared/cgroup-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c
index 4ce885601f..e6ceb99454 100644
--- a/src/shared/cgroup-util.c
+++ b/src/shared/cgroup-util.c
@@ -194,12 +194,12 @@ int cg_kill(const char *controller, const char *path, int sig, bool sigcont, boo
if (kill(pid, sig) < 0) {
if (ret >= 0 && errno != ESRCH)
ret = -errno;
- } else if (ret == 0) {
-
+ } else {
if (sigcont)
kill(pid, SIGCONT);
- ret = 1;
+ if (ret == 0)
+ ret = 1;
}
done = false;