signal1.right 364 B

1234567891011121314151617181920
  1. got signal
  2. trap -- 'echo got signal' USR1
  3. sent 1 signal
  4. got signal
  5. wait interrupted
  6. trap -- 'echo got signal' USR1
  7. sent 2 signal
  8. got signal
  9. wait interrupted
  10. trap -- 'echo got signal' USR1
  11. sent 3 signal
  12. got signal
  13. wait interrupted
  14. trap -- 'echo got signal' USR1
  15. sent 4 signal
  16. got signal
  17. wait interrupted
  18. trap -- 'echo got signal' USR1
  19. sent 5 signal
  20. sleep completed