From 4527cec26bc6818404c4eb39dcebb6bea641e50b Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Mon, 16 Dec 2024 14:25:24 -0500 Subject: [PATCH] lxc.init: Allow SIGHUP from outside the container MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/lxc/initutils.c | 11 ----------- 1 file changed, 11 deletions(-) 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: -- 2.47.2