From: Lennart Poettering Date: Thu, 6 Feb 2014 18:27:59 +0000 (+0100) Subject: cgroup: make sure to properly send SIGCONT to all processes of a cgroup if that's... X-Git-Tag: v209~233 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=6e8314c420eb375847c9e526745c2caec802399d;hp=5f41d1f10fd97e93517b6a762b1bec247f4d1171 cgroup: make sure to properly send SIGCONT to all processes of a cgroup if that's requested --- diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c index 4ce885601..e6ceb9945 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;