projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8617454
)
init: HUP should not be temporarily set to "restart",
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 19 Feb 2008 12:08:38 +0000
(12:08 -0000)
committer
Denis 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
patch
|
blob
|
history
diff --git
a/init/init.c
b/init/init.c
index 8d706fe1f681d51b25ebea03e7cace1cf65a3415..8eaf61f968ee8813ff5800e4afd56d81cd294e2e 100644
(file)
--- 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 */