fix false positive in signal5.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-05-17 10:14:20 +02:00
parent 82dd14a510
commit 786cce1871
2 changed files with 7 additions and 6 deletions

View File

@ -1,12 +1,12 @@
Waiting
sleeping for 1 sec
sleeping for 3 sec
sleeping for 2 sec
1 sec passed, sending USR1 to parent
USR1 received
Wait exit code: 138
Waiting
2 sec passed, sending USR1 to parent
USR1 received
Wait exit code: 138
Waiting
3 sec passed, sending USR1 to parent
USR1 received
Wait exit code: 138
Waiting
Wait returned 0

View File

@ -5,8 +5,9 @@ stub() {
echo "$1 sec passed, sending USR1 to parent"
kill -USR1 $$
}
stub 3 &
stub 2 &
stub 1 &
sleep 1
until { echo "Waiting"; wait; } do
echo "Wait exit code: $?"
done