[systemd-devel] [PATCH] cgroup-util: Don't send SIGCONT after SIGKILL

Ross Lagerwall rosslagerwall at gmail.com
Sat Nov 29 03:31:30 PST 2014


---
 src/shared/cgroup-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c
index bc5030e..e595d89 100644
--- a/src/shared/cgroup-util.c
+++ b/src/shared/cgroup-util.c
@@ -195,7 +195,7 @@ int cg_kill(const char *controller, const char *path, int sig, bool sigcont, boo
                                 if (ret >= 0 && errno != ESRCH)
                                         ret = -errno;
                         } else {
-                                if (sigcont)
+                                if (sigcont && sig != SIGKILL)
                                         kill(pid, SIGCONT);
 
                                 if (ret == 0)
-- 
2.1.2



More information about the systemd-devel mailing list