]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-init: use SIGKILL after alarm timeout 2129/head
authorTycho Andersen <tycho@tycho.ws>
Mon, 5 Feb 2018 14:13:18 +0000 (14:13 +0000)
committerTycho Andersen <tycho@tycho.ws>
Mon, 5 Feb 2018 14:13:18 +0000 (14:13 +0000)
d76e3e1 inadvertently switched the alarm timeout from sigterm to sigkill.
We really want sigkill here, so let's bring it back.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
src/lxc/lxc_init.c

index 594b000941db21a2a789c2b822c1261b7a37afcc..f935f8f210361cce81d361ce72e9b6065c3497ea 100644 (file)
@@ -408,7 +408,7 @@ int main(int argc, char *argv[])
                        if (mypid != 1) {
                                kill_children(mypid);
                        } else {
-                               ret = kill(-1, SIGTERM);
+                               ret = kill(-1, SIGKILL);
                                if (ret < 0)
                                        DEBUG("%s - Failed to send SIGTERM to "
                                              "all children", strerror(errno));