test24a.sh 236 B

12345678910
  1. #! ./testshell
  2. set -T
  3. echo pid $$
  4. trap : 2
  5. echo "You should be able to end this script with two SIGINT"
  6. echo
  7. (echo pid $$ ; trap "echo exit pid $$ ; exit 1" 2 ; ./hardguy)
  8. (echo pid $$ ; trap "echo exit pid $$ ; exit 1" 2 ; ./hardguy)