From: Denis Vlasenko Date: Tue, 19 Feb 2008 12:08:38 +0000 (-0000) Subject: init: HUP should not be temporarily set to "restart", X-Git-Tag: 1_10_0~130 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=99a61842df559f0cfc8613436b3bf89f4e757abf;p=oweals%2Fbusybox.git init: HUP should not be temporarily set to "restart", we use it for config reload, and we have QUIT for "restart". --- diff --git a/init/init.c b/init/init.c index 8d706fe1f..8eaf61f96 100644 --- a/init/init.c +++ b/init/init.c @@ -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 */