chiark / gitweb /
cgroup-util: Don't send SIGCONT after SIGKILL
[elogind.git] / src / shared / cgroup-util.c
index bc5030ebb2a29e441573dde0e249152ad22e6c56..e595d895d29afe94cbb71bd9e7c5d41dc95e2ace 100644 (file)
@@ -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 (ret >= 0 && errno != ESRCH)
                                         ret = -errno;
                         } else {
-                                if (sigcont)
+                                if (sigcont && sig != SIGKILL)
                                         kill(pid, SIGCONT);
 
                                 if (ret == 0)
                                         kill(pid, SIGCONT);
 
                                 if (ret == 0)