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-06 19:27:59 +01:00
parent 5f41d1f10f
commit 6e8314c420
1 changed files with 3 additions and 3 deletions

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;