projects
/
busybox4maemo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fixed time command segfault with no arguments
[busybox4maemo]
/
shell
/
ash_test
/
ash-signals
/
signal1.tests
1
sleeping=true
2
3
trap "echo got signal" USR1
4
5
for try in 1 2 3 4 5; do
6
kill -USR1 $$
7
sleep 1
8
echo sent $try signal
9
done &
10
11
sleep 10 &
12
13
while $sleeping; do
14
trap
15
if wait %%; then
16
echo sleep completed
17
sleeping=false
18
elif [ $? == 127 ]; then
19
echo no sleep tonite
20
sleeping=false
21
else
22
echo sleep interrupted;
23
fi
24
done