busybox/shell/ash_test/ash-signals/signal1.right
Denys Vlasenko 844f990926 ash: fix trap
function                                             old     new   delta
forkshell                                            738     810     +72
popstring                                            134     140      +6
parse_command                                       1460    1463      +3
evalvar                                             1373    1371      -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 81/-2)              Total: 79 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-23 03:25:52 +02:00

21 lines
379 B
Plaintext

got signal
trap -- 'echo got signal' SIGUSR1
sent 1 signal
got signal
wait interrupted
trap -- 'echo got signal' SIGUSR1
sent 2 signal
got signal
wait interrupted
trap -- 'echo got signal' SIGUSR1
sent 3 signal
got signal
wait interrupted
trap -- 'echo got signal' SIGUSR1
sent 4 signal
got signal
wait interrupted
trap -- 'echo got signal' SIGUSR1
sent 5 signal
sleep completed