From: Stéphane Graber Date: Mon, 16 Dec 2024 19:25:24 +0000 (-0500) Subject: lxc.init: Allow SIGHUP from outside the container X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4527cec26bc6818404c4eb39dcebb6bea641e50b;p=thirdparty%2Flxc.git lxc.init: Allow SIGHUP from outside the container Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/initutils.c b/src/lxc/initutils.c index 86b031c28..a8ec1764b 100644 --- a/src/lxc/initutils.c +++ b/src/lxc/initutils.c @@ -637,17 +637,6 @@ __noreturn int lxc_container_init(int argc, char *const *argv, bool quiet) switch (was_interrupted) { case 0: - /* Some applications send SIGHUP in order to get init to reload - * its configuration. We don't want to forward this onto the - * application itself, because it probably isn't expecting this - * signal since it was expecting init to do something with it. - * - * Instead, let's explicitly ignore it here. The actual - * terminal case is handled in the monitor's handler, which - * sends this task a SIGTERM in the case of a SIGHUP, which is - * what we want. - */ - case SIGHUP: break; case SIGPWR: case SIGTERM: