cgroup: make sure to properly send SIGCONT to all processes of a cgroup if that's requested

This commit is contained in:
Lennart Poettering
2014-02-07 15:14:36 +01:00
parent 5f41d1f10f
commit 6e8314c420
+3 -3
View File
@@ -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;