init: HUP should not be temporarily set to "restart",
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 19 Feb 2008 12:08:38 +0000 (12:08 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 19 Feb 2008 12:08:38 +0000 (12:08 -0000)
we use it for config reload, and we have QUIT for "restart".

init/init.c

index 8d706fe1f681d51b25ebea03e7cace1cf65a3415..8eaf61f968ee8813ff5800e4afd56d81cd294e2e 100644 (file)
@@ -853,10 +853,7 @@ int init_main(int argc, char **argv)
                }
                /* Set up sig handlers  -- be sure to
                 * clear all of these in run() */
-               bb_signals(0
-                       + (1 << SIGHUP)
-                       + (1 << SIGQUIT)
-                       , exec_restart_action);
+               signal(SIGQUIT, exec_restart_action);
                bb_signals(0
                        + (1 << SIGUSR1)  /* halt */
                        + (1 << SIGUSR2)  /* poweroff */