hush: do not reset sighaldlers after fork - instead, prevent them from doing any...
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 31 Mar 2009 12:03:40 +0000 (12:03 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 31 Mar 2009 12:03:40 +0000 (12:03 -0000)
commitabedaac8423d72325ae05602bf1bdcde28ecd7fa
tree144592f8f52aafafa0af0a70e9656dd1467b343d
parentd5762932fbcbc0a385047945276f10e2f3fea12d
hush: do not reset sighaldlers after fork - instead, prevent them from doing any harm
 if they will be called. saves many sigaction calls on every fork.

function                                             old     new   delta
hush_main                                            887     971     +84
sigexit                                               54      65     +11
run_list                                            2006    2001      -5
maybe_set_sighandler                                  76      50     -26
set_fatal_sighandler                                 186       -    -186
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/2 up/down: 95/-217)          Total: -122 bytes
shell/hush.c