Skip to content

Commit

Permalink
lxc-init: use SIGKILL after alarm timeout
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tych0 committed Feb 5, 2018
1 parent cf73b78 commit 60e324a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/lxc_init.c
Expand Up @@ -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));
Expand Down

0 comments on commit 60e324a

Please sign in to comment.