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