hush: make read builtin interruptible.
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 May 2011 19:23:43 +0000 (21:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 May 2011 19:23:43 +0000 (21:23 +0200)
commit80542bad2f1df9d99b579c9eeb3c2675c14c72c0
tree906cdea5609e0272fda16dc02caa3c683912c228
parent80c5b6893d4708b3683ad9a51c990a326a8f1dff
hush: make read builtin interruptible.

function                                             old     new   delta
builtin_read                                         185     471    +286
check_and_run_traps                                  200     262     +62
nonblock_immune_read                                  73     119     +46
sigismember                                            -      44     +44
record_signal                                          -      21     +21
sigisemptyset                                          -      16     +16
...
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 7/5 up/down: 483/-46)           Total: 437 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/read_printf.c
shell/ash.c
shell/hush.c
shell/shell_common.c