test24.sh 249 B

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