busybox/shell/ash_test/ash-misc/wait7.tests
Denys Vlasenko d4dd48f294 shell: add testsuite for "wait $pid" waiting for other tasks
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2020-09-29 22:36:36 +02:00

8 lines
137 B
Plaintext
Executable File

sleep 1 && echo "Background1" &
pid=$!
sleep 3 && echo "Background2: BUG!" &
# Shouldn't wait for 2nd bkgd:
wait $pid
kill $!
echo Ok:$?