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 bc5030e..e595d89 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)