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