]> git.ipfire.org Git - thirdparty/lxc.git/commit
monitor: send SIGTERM to the container when SIGHUP is received
authorTycho Andersen <tycho@tycho.ws>
Mon, 5 Feb 2018 14:17:48 +0000 (14:17 +0000)
committerTycho Andersen <tycho@tycho.ws>
Mon, 5 Feb 2018 14:17:48 +0000 (14:17 +0000)
commitd4b5d7a8b418a14f6f97bc00df9b529eb09ea4f8
treeadc3f9aec2cfe81d3638797e65b6648985b7412f
parentcf73b78c0c85485bb3dd8030ce02d3460e094d71
monitor: send SIGTERM to the container when SIGHUP is received

For the ->execute() case, we want to make sure the application dies when
SIGHUP is received. The next patch will ignore SIGHUP in the lxc monitor,
because tasks inside the container send SIGHUP to init to have it reload
its config sometimes, and we don't want to do that with init.lxc, since it
might actually kill the container if it forwards SIGHUP to the child and
the child can't handle it.

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