ash: make one testsuite entry more robust

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-10-09 23:08:28 +02:00
parent 69d1f45c16
commit 3dc4a3e4dc

View File

@ -6,8 +6,13 @@ for try in 1 2 3 4 5; do
echo "sent $try signal"
done &
# Ensure "wait" have something to wait for
sleep 2 &
# Ensure we do not execute "trap" below before "kill -USR1" above
# (was getting failure on loaded machine without this)
sleep 0.1
sleeping=true
while $sleeping; do
trap