ash: better handling of EXIT trap in `trap` hack
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 24 Sep 2009 22:06:51 +0000 (00:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 24 Sep 2009 22:06:51 +0000 (00:06 +0200)
commit21d87d495a78f9207d643a5bf99061d4401370ef
tree455c5f4d34aad1885b7b793230cef11c5c750339
parent0800e3af75461c6322427dab53d3526066453b04
ash: better handling of EXIT trap in `trap` hack

function                                             old     new   delta
forkchild                                              -     602    +602
trapcmd                                              255     347     +92
ash_main                                            1362    1375     +13
evalvar                                             1371    1373      +2
popstring                                            140     134      -6
forkshell                                            835     248    -587
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/2 up/down: 709/-593)          Total: 116 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
shell/ash_test/ash-signals/savetrap.right
shell/ash_test/ash-signals/savetrap.tests
shell/hush_test/hush-trap/savetrap.right
shell/hush_test/hush-trap/savetrap.tests