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 (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;
|
||||
|
|
Loading…
Reference in New Issue