blob: 9ed59ee5b6f7d40e55c62bef31feb7d1485c835d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# framework to test `wait -f' which forces wait until a job exits
set -o monitor
sleep 5 &
child1=$!
( sleep 1; kill -STOP $child1 ; sleep 1 ; kill -CONT $child1 )&
child2=$!
wait -f %1
echo child1 exit status $?
wait $child2
exit 0
|