chiark / gitweb /
cgroup-util: Don't send SIGCONT after SIGKILL
authorRoss Lagerwall <rosslagerwall@gmail.com>
Sat, 29 Nov 2014 11:31:30 +0000 (11:31 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 30 Nov 2014 21:58:55 +0000 (22:58 +0100)
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 (sigcont)
+                                if (sigcont && sig != SIGKILL)
                                         kill(pid, SIGCONT);
 
                                 if (ret == 0)