Blame SOURCES/0311-cgroup-make-sure-to-properly-send-SIGCONT-to-all-pro.patch
|
|
84b277 |
From 0c5ef7a5535c4b3aebfc61793c28919f696d5e99 Mon Sep 17 00:00:00 2001
|
|
|
84b277 |
From: Lennart Poettering <lennart@poettering.net>
|
|
|
84b277 |
Date: Thu, 6 Feb 2014 19:27:59 +0100
|
|
|
84b277 |
Subject: [PATCH] cgroup: make sure to properly send SIGCONT to all processes
|
|
|
84b277 |
of a cgroup if that's requested
|
|
|
84b277 |
|
|
|
84b277 |
(cherry-picked from 6e8314c420eb375847c9e526745c2caec802399d)
|
|
|
84b277 |
|
|
|
84b277 |
Resolves: #1147524
|
|
|
84b277 |
---
|
|
|
84b277 |
src/shared/cgroup-util.c | 6 +++---
|
|
|
84b277 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
84b277 |
|
|
|
84b277 |
diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c
|
|
|
84b277 |
index 8a4edda..b58d8b8 100644
|
|
|
84b277 |
--- a/src/shared/cgroup-util.c
|
|
|
84b277 |
+++ b/src/shared/cgroup-util.c
|
|
|
84b277 |
@@ -194,12 +194,12 @@ int cg_kill(const char *controller, const char *path, int sig, bool sigcont, boo
|
|
|
84b277 |
if (kill(pid, sig) < 0) {
|
|
|
84b277 |
if (ret >= 0 && errno != ESRCH)
|
|
|
84b277 |
ret = -errno;
|
|
|
84b277 |
- } else if (ret == 0) {
|
|
|
84b277 |
-
|
|
|
84b277 |
+ } else {
|
|
|
84b277 |
if (sigcont)
|
|
|
84b277 |
kill(pid, SIGCONT);
|
|
|
84b277 |
|
|
|
84b277 |
- ret = 1;
|
|
|
84b277 |
+ if (ret == 0)
|
|
|
84b277 |
+ ret = 1;
|
|
|
84b277 |
}
|
|
|
84b277 |
|
|
|
84b277 |
done = false;
|