Home
last modified time | relevance | path

Searched refs:trap (Results 1 – 25 of 64) sorted by relevance

123

/busybox-1.35.0/shell/ash_test/ash-signals/
Dsubshell.right1 trap -- '' HUP
2 trap -- '' QUIT
3 trap -- '' SYS
5 trap -- '' HUP
6 trap -- '' QUIT
7 trap -- '' SYS
9 trap -- '' HUP
10 trap -- '' QUIT
11 trap -- '' SYS
13 trap -- '' HUP
[all …]
Dusage.right4 trap -- 'a' EXIT
5 trap -- 'a' INT
6 trap -- 'a' USR1
7 trap -- 'a' USR2
10 trap -- 'a' USR1
11 trap -- 'a' USR2
14 trap -- 'a' USR2
Dsavetrap.right1 trap -- 'echo Exiting' EXIT
2 trap -- 'echo WINCH!' WINCH
3 trap -- 'echo Exiting' EXIT
4 trap -- 'echo WINCH!' WINCH
5 trap -- 'echo Exiting' EXIT
6 trap -- 'echo WINCH!' WINCH
Dusage.tests3 trap
7 trap "a" EXIT INT USR1 USR2
11 trap
15 trap 0 INT
17 trap
21 trap "-" USR1
23 trap
Dsubshell.tests4 trap '' HUP
6 trap '' QUIT
8 trap '' SYS
10 trap 'bad: caught WINCH' WINCH
12 trap 'bad: caught TERM' TERM
14 (trap; "$THIS_SH" -c 'kill -HUP $PPID'; echo Ok)
15 (trap; "$THIS_SH" -c 'kill -QUIT $PPID'; echo Ok)
16 (trap; "$THIS_SH" -c 'kill -SYS $PPID'; echo Ok)
17 (trap; "$THIS_SH" -c 'kill -WINCH $PPID'; echo Ok)
18 (trap; "$THIS_SH" -c 'kill -TERM $PPID'; echo Bad: TERM is not reset)
Dsavetrap.tests1 trap 'echo Exiting' EXIT
2 trap 'echo WINCH!' SIGWINCH
3 v=` trap `
5 v=$( trap )
7 v=`trap`
Dcatch.tests2 trap ":" USR1 USR2
5 trap "echo caught" USR2
9 trap "" USR2
13 trap "-" USR2
20 trap "-" USR1 USR2
Dsignal1.right2 trap -- 'echo got signal' USR1
6 trap -- 'echo got signal' USR1
10 trap -- 'echo got signal' USR1
14 trap -- 'echo got signal' USR1
18 trap -- 'echo got signal' USR1
/busybox-1.35.0/shell/hush_test/hush-signals/
Dsubshell.right1 trap -- '' HUP
2 trap -- '' QUIT
3 trap -- '' SYS
5 trap -- '' HUP
6 trap -- '' QUIT
7 trap -- '' SYS
9 trap -- '' HUP
10 trap -- '' QUIT
11 trap -- '' SYS
13 trap -- '' HUP
[all …]
Dexit.tests1 "$THIS_SH" -c 'trap "echo cow" 0'
2 "$THIS_SH" -c 'trap "echo moo" EXIT'
3 "$THIS_SH" -c 'trap "echo no" 0; trap 0'
8 trap
9 # EXIT trap is disabled after it is triggered,
11 trap "echo Should not run" EXIT
13 trap
15 trap 'exitfunc' EXIT
23 trap
24 # EXIT trap is disabled after it is triggered,
[all …]
Dusage.right4 trap -- 'a' EXIT
5 trap -- 'a' INT
6 trap -- 'a' USR1
7 trap -- 'a' USR2
10 trap -- 'a' USR1
11 trap -- 'a' USR2
14 trap -- 'a' USR2
Dsavetrap.right1 trap -- 'echo Exiting' EXIT
2 trap -- 'echo WINCH!' WINCH
3 trap -- 'echo Exiting' EXIT
4 trap -- 'echo WINCH!' WINCH
5 trap -- 'echo Exiting' EXIT
6 trap -- 'echo WINCH!' WINCH
Dusage.tests3 trap
7 trap "a" EXIT INT USR1 USR2
11 trap
15 trap 0 INT
17 trap
21 trap "-" USR1
23 trap
Dsubshell.tests4 trap '' HUP
6 trap '' QUIT
8 trap '' SYS
10 trap 'bad: caught WINCH' WINCH
12 trap 'bad: caught TERM' TERM
14 (trap; "$THIS_SH" -c 'kill -HUP $PPID'; echo Ok)
15 (trap; "$THIS_SH" -c 'kill -QUIT $PPID'; echo Ok)
16 (trap; "$THIS_SH" -c 'kill -SYS $PPID'; echo Ok)
17 (trap; "$THIS_SH" -c 'kill -WINCH $PPID'; echo Ok)
18 (trap; "$THIS_SH" -c 'kill -TERM $PPID'; echo Bad: TERM is not reset)
Dsavetrap.tests1 trap 'echo Exiting' EXIT
2 trap 'echo WINCH!' SIGWINCH
3 v=` trap `
5 v=$( trap )
7 v=`trap`
Dcatch.tests2 trap ":" USR1 USR2
5 trap "echo caught" USR2
9 trap "" USR2
13 trap "-" USR2
20 trap "-" USR1 USR2
Dexit.right4 trap -- 'exitfunc' EXIT
6 trap -- 'echo Should not run' EXIT
9 trap -- 'exitfunc' EXIT
11 trap -- 'echo Should not run' EXIT
Dsignal1.right2 trap -- 'echo got signal' USR1
6 trap -- 'echo got signal' USR1
10 trap -- 'echo got signal' USR1
14 trap -- 'echo got signal' USR1
18 trap -- 'echo got signal' USR1
/busybox-1.35.0/shell/hush_test/hush-misc/
Dexitcode_trap6.tests1 # "exit" in trap should not use last command's exitcode,
2 # but exitcode on entering the trap.
3 # Nested trap should not interfere with this.
5 trap "echo INT" int
6 trap "kill -int $$;exit" term
Dexitcode_trap4.tests1 # "return" in trap sets $? after trap
2 trap "echo TERM;return 11" term
Dexitcode_trap2.tests1 # "exit" in trap should not use last command's exitcode,
2 # but exitcode on entering the trap.
4 trap "false;exit" term
/busybox-1.35.0/shell/ash_test/ash-misc/
Dexitcode_trap6.tests1 # "exit" in trap should not use last command's exitcode,
2 # but exitcode on entering the trap.
3 # Nested trap should not interfere with this.
5 trap "echo INT" int
6 trap "kill -int $$;exit" term
Dexitcode_trap4.tests1 # "return" in trap sets $? after trap
2 trap "echo TERM;return 11" term
Dexitcode_trap1.tests1 # "exit" in trap should not use last command's exitcode,
2 # but exitcode on entering the trap.
3 (trap "echo Trapped; exit" EXIT
Dexitcode_trap2.tests1 # "exit" in trap should not use last command's exitcode,
2 # but exitcode on entering the trap.
4 trap "false;exit" term

123