init: do not run shutdown/reexec actions from signal handler
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Nov 2014 19:10:57 +0000 (20:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Nov 2014 19:10:57 +0000 (20:10 +0100)
commit2bba9ad67a917de2624d427c8c107ce3e2d3d085
tree9557d8e5b55ed51cee72561c53bb712e23785511
parent4e314faa0aecb66717418e9a47a4451aec59262b
init: do not run shutdown/reexec actions from signal handler

this is racy wrt various libc functions such as syslog()

function                                             old     new   delta
check_delayed_sigs                                   182     352    +170
init_main                                            772     728     -44
restart_handler                                       74       -     -74
halt_reboot_pwoff                                     79       -     -79
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/1 up/down: 170/-197)          Total: -27 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
init/init.c