cgroup: make sure to properly send SIGCONT to all processes of a cgroup if that's requested
This commit is contained in:
parent
5f41d1f10f
commit
6e8314c420
|
@ -194,12 +194,12 @@ int cg_kill(const char *controller, const char *path, int sig, bool sigcont, boo
|
||||||
if (kill(pid, sig) < 0) {
|
if (kill(pid, sig) < 0) {
|
||||||
if (ret >= 0 && errno != ESRCH)
|
if (ret >= 0 && errno != ESRCH)
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
} else if (ret == 0) {
|
} else {
|
||||||
|
|
||||||
if (sigcont)
|
if (sigcont)
|
||||||
kill(pid, SIGCONT);
|
kill(pid, SIGCONT);
|
||||||
|
|
||||||
ret = 1;
|
if (ret == 0)
|
||||||
|
ret = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
done = false;
|
done = false;
|
||||||
|
|
Loading…
Reference in New Issue