]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc.init: Allow SIGHUP from outside the container 4503/head
authorStéphane Graber <stgraber@stgraber.org>
Mon, 16 Dec 2024 19:25:24 +0000 (14:25 -0500)
committerStéphane Graber <stgraber@stgraber.org>
Mon, 16 Dec 2024 22:06:12 +0000 (17:06 -0500)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
src/lxc/initutils.c

index 86b031c28d629067c1982685bb64f962bdb42968..a8ec1764bb2ca7816aeaf7dbc779b9b224c640a3 100644 (file)
@@ -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: