Denys Vlasenko | 27ff681 | 2010-05-17 02:56:18 +0200 | [diff] [blame^] | 1 | # Not fixed yet |
2 | trap "echo USR1 received" USR1 | ||||
3 | stub() { | ||||
4 | echo "sleeping for $1 sec" | ||||
5 | sleep $1 | ||||
6 | echo "$1 sec passed, sending USR1 to parent" | ||||
7 | kill -USR1 $$ | ||||
8 | } | ||||
9 | stub 2 & | ||||
10 | stub 1 & | ||||
11 | until { echo "Waiting"; wait; } do | ||||
12 | echo "Wait exit code: $?" | ||||
13 | done | ||||
14 | echo "Wait returned 0" |