blob: 179bcdd8097a60058000c8157a4dbff7e29d598a [file] [log] [blame]
Denys Vlasenko5d6b8722016-10-02 17:39:31 +02001trap "echo USR1 received" USR1
2stub() {
3 echo "Sleeping"
4 sleep $1
5 echo "$1 sec passed, sending USR1 to parent"
6 kill -USR1 $$
7}
8stub 3 &
9stub 2 &
10sleep 1
11until { echo "Waiting"; wait; } do
12 echo "Wait exit code: $?"
13done
14echo "Wait returned 0"