Magellan Linux

Contents of /trunk/mkinitrd-magellan/busybox/shell/ash_test/ash-signals/signal1.tests

Parent Directory Parent Directory | Revision Log Revision Log


Revision 816 - (show annotations) (download)
Fri Apr 24 18:33:46 2009 UTC (15 years, 1 month ago) by niro
File size: 403 byte(s)
-updated to busybox-1.13.4
1 trap "echo got signal" USR1
2
3 for try in 1 2 3 4 5; do
4 kill -USR1 $$
5 sleep 0.2
6 echo "sent $try signal"
7 done &
8
9 sleep 2 &
10
11 sleeping=true
12 while $sleeping; do
13 trap
14 if wait %%; then
15 echo "sleep completed"
16 sleeping=false
17 elif [ $? == 127 ]; then
18 echo "BUG: no processes to wait for?!"
19 sleeping=false
20 else
21 echo "wait interrupted"
22 fi
23 done