2009-03-29 15:24:40 +05:30
|
|
|
# avoid ugly warnings about signals not being caught
|
|
|
|
trap ":" USR1 USR2
|
|
|
|
|
2009-04-01 03:44:32 +05:30
|
|
|
"$THIS_SH" -c '
|
2009-03-29 15:24:40 +05:30
|
|
|
trap "echo caught" USR2
|
|
|
|
echo "sending USR2"
|
|
|
|
kill -USR2 $$
|
|
|
|
|
|
|
|
trap "" USR2
|
|
|
|
echo "sending USR2"
|
|
|
|
kill -USR2 $$
|
|
|
|
|
|
|
|
trap "-" USR2
|
|
|
|
echo "sending USR2"
|
|
|
|
kill -USR2 $$
|
|
|
|
|
|
|
|
echo "not reached"
|
|
|
|
'
|
|
|
|
|
|
|
|
trap "-" USR1 USR2
|