Searched refs:trap (Results 1 – 25 of 64) sorted by relevance
123
1 trap -- '' HUP2 trap -- '' QUIT3 trap -- '' SYS5 trap -- '' HUP6 trap -- '' QUIT7 trap -- '' SYS9 trap -- '' HUP10 trap -- '' QUIT11 trap -- '' SYS13 trap -- '' HUP[all …]
4 trap -- 'a' EXIT5 trap -- 'a' INT6 trap -- 'a' USR17 trap -- 'a' USR210 trap -- 'a' USR111 trap -- 'a' USR214 trap -- 'a' USR2
1 trap -- 'echo Exiting' EXIT2 trap -- 'echo WINCH!' WINCH3 trap -- 'echo Exiting' EXIT4 trap -- 'echo WINCH!' WINCH5 trap -- 'echo Exiting' EXIT6 trap -- 'echo WINCH!' WINCH
3 trap7 trap "a" EXIT INT USR1 USR211 trap15 trap 0 INT17 trap21 trap "-" USR123 trap
4 trap '' HUP6 trap '' QUIT8 trap '' SYS10 trap 'bad: caught WINCH' WINCH12 trap 'bad: caught TERM' TERM14 (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)
1 trap 'echo Exiting' EXIT2 trap 'echo WINCH!' SIGWINCH3 v=` trap `5 v=$( trap )7 v=`trap`
2 trap ":" USR1 USR25 trap "echo caught" USR29 trap "" USR213 trap "-" USR220 trap "-" USR1 USR2
2 trap -- 'echo got signal' USR16 trap -- 'echo got signal' USR110 trap -- 'echo got signal' USR114 trap -- 'echo got signal' USR118 trap -- 'echo got signal' USR1
1 "$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 trap9 # EXIT trap is disabled after it is triggered,11 trap "echo Should not run" EXIT13 trap15 trap 'exitfunc' EXIT23 trap24 # EXIT trap is disabled after it is triggered,[all …]
4 trap -- 'exitfunc' EXIT6 trap -- 'echo Should not run' EXIT9 trap -- 'exitfunc' EXIT11 trap -- 'echo Should not run' EXIT
1 # "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" int6 trap "kill -int $$;exit" term
1 # "return" in trap sets $? after trap2 trap "echo TERM;return 11" term
1 # "exit" in trap should not use last command's exitcode,2 # but exitcode on entering the trap.4 trap "false;exit" term
1 # "exit" in trap should not use last command's exitcode,2 # but exitcode on entering the trap.3 (trap "echo Trapped; exit" EXIT