Files
bash/tests/jobs6.sub
2019-01-07 09:27:52 -05:00

15 lines
237 B
Plaintext

# 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