1
0
Fork 0
bash/tests/jobs6.sub
Daniel Baumann fa1b3d3922
Adding upstream version 5.2.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 06:49:21 +02:00

14 lines
237 B
Text

# 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