summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorDenis Vlasenko2008-02-19 12:08:38 +0000
committerDenis Vlasenko2008-02-19 12:08:38 +0000
commit99a61842df559f0cfc8613436b3bf89f4e757abf (patch)
treeb24a498292fb344b23a35b71622acc79b3e638ec /init
parent8617454027e596329851d54a5a2035fc602a9d4e (diff)
downloadbusybox-99a61842df559f0cfc8613436b3bf89f4e757abf.zip
busybox-99a61842df559f0cfc8613436b3bf89f4e757abf.tar.gz
init: HUP should not be temporarily set to "restart",
we use it for config reload, and we have QUIT for "restart".
Diffstat (limited to 'init')
-rw-r--r--init/init.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/init/init.c b/init/init.c
index 8d706fe..8eaf61f 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 */