diff options
author | Denys Vlasenko | 2009-09-23 03:25:52 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-09-23 03:25:52 +0200 |
commit | 844f9909264b7f46620e06b7116facba0a940667 (patch) | |
tree | c0a21470c20f3dcab9c61abbd2e2137172741f09 /shell/ash_test/ash-signals | |
parent | 91836baf85ce6980a33c6ce38730928a4edc3c5a (diff) | |
download | busybox-844f9909264b7f46620e06b7116facba0a940667.zip busybox-844f9909264b7f46620e06b7116facba0a940667.tar.gz |
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>
Diffstat (limited to 'shell/ash_test/ash-signals')
-rw-r--r-- | shell/ash_test/ash-signals/savetrap.right | 3 | ||||
-rwxr-xr-x | shell/ash_test/ash-signals/savetrap.tests | 6 | ||||
-rw-r--r-- | shell/ash_test/ash-signals/signal1.right | 10 |
3 files changed, 14 insertions, 5 deletions
diff --git a/shell/ash_test/ash-signals/savetrap.right b/shell/ash_test/ash-signals/savetrap.right new file mode 100644 index 0000000..2d33427 --- /dev/null +++ b/shell/ash_test/ash-signals/savetrap.right @@ -0,0 +1,3 @@ +trap -- 'echo WINCH!' SIGWINCH +trap -- 'echo WINCH!' SIGWINCH +Done diff --git a/shell/ash_test/ash-signals/savetrap.tests b/shell/ash_test/ash-signals/savetrap.tests new file mode 100755 index 0000000..6492e86 --- /dev/null +++ b/shell/ash_test/ash-signals/savetrap.tests @@ -0,0 +1,6 @@ +trap 'echo WINCH!' SIGWINCH +v=` trap ` +echo $v +v=`trap` +echo $v +echo Done diff --git a/shell/ash_test/ash-signals/signal1.right b/shell/ash_test/ash-signals/signal1.right index cf403ac..beb0a98 100644 --- a/shell/ash_test/ash-signals/signal1.right +++ b/shell/ash_test/ash-signals/signal1.right @@ -1,20 +1,20 @@ got signal -trap -- 'echo got signal' USR1 +trap -- 'echo got signal' SIGUSR1 sent 1 signal got signal wait interrupted -trap -- 'echo got signal' USR1 +trap -- 'echo got signal' SIGUSR1 sent 2 signal got signal wait interrupted -trap -- 'echo got signal' USR1 +trap -- 'echo got signal' SIGUSR1 sent 3 signal got signal wait interrupted -trap -- 'echo got signal' USR1 +trap -- 'echo got signal' SIGUSR1 sent 4 signal got signal wait interrupted -trap -- 'echo got signal' USR1 +trap -- 'echo got signal' SIGUSR1 sent 5 signal sleep completed |