Mike Frysinger | fd303b1 | 2009-03-29 09:54:40 +0000 | [diff] [blame] | 1 | # avoid ugly warnings about signals not being caught |
2 | trap ":" USR1 USR2 | ||||
3 | |||||
Denis Vlasenko | d308106 | 2009-03-31 22:14:32 +0000 | [diff] [blame] | 4 | "$THIS_SH" -c ' |
Mike Frysinger | fd303b1 | 2009-03-29 09:54:40 +0000 | [diff] [blame] | 5 | trap "echo caught" USR2 |
6 | echo "sending USR2" | ||||
7 | kill -USR2 $$ | ||||
8 | |||||
9 | trap "" USR2 | ||||
10 | echo "sending USR2" | ||||
11 | kill -USR2 $$ | ||||
12 | |||||
13 | trap "-" USR2 | ||||
14 | echo "sending USR2" | ||||
15 | kill -USR2 $$ | ||||
16 | |||||
17 | echo "not reached" | ||||
18 | ' | ||||
19 | |||||
20 | trap "-" USR1 USR2 |