busybox/shell/ash_test/ash-signals/signal1.right
Denys Vlasenko e74aaf9385 ash,hush: make trap output short signal names, without SIG prefix
function                                             old     new   delta
evalvar                                             1373    1371      -2
builtin_trap                                         457     441     -16
trapcmd                                              260     236     -24

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-27 02:05:45 +02:00

21 lines
364 B
Plaintext

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