ash_doc.txt 569 B

12345678910111213141516171819202122232425262728293031
  1. Wait + signals
  2. We had some bugs here which are hard to test in testsuite.
  3. Bug 1280 (http://busybox.net/bugs/view.php?id=1280):
  4. was misbehaving in interactive ash. Correct behavior:
  5. $ sleep 20 &
  6. $ wait
  7. ^C
  8. $ wait
  9. ^C
  10. $ wait
  11. ^C
  12. ...
  13. Bug 1984 (http://busybox.net/bugs/view.php?id=1984):
  14. traps were not triggering:
  15. trap_handler_usr () {
  16. echo trap usr
  17. }
  18. trap_handler_int () {
  19. echo trap int
  20. }
  21. trap trap_handler_usr USR1
  22. trap trap_handler_int INT
  23. sleep 3600 &
  24. echo "Please do: kill -USR1 $$"
  25. echo "or: kill -INT $$"
  26. while true; do wait; echo wait interrupted; done