mirror of https://github.com/mirror/busybox.git
shell: add testsuite for "wait $pid" waiting for other tasks
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_32_stable
parent
e7629ffbf5
commit
58cbf385e0
|
@ -0,0 +1,2 @@
|
|||
Background1
|
||||
Ok:0
|
|
@ -0,0 +1,7 @@
|
|||
sleep 1 && echo "Background1" &
|
||||
pid=$!
|
||||
sleep 3 && echo "Background2: BUG!" &
|
||||
# Shouldn't wait for 2nd bkgd:
|
||||
wait $pid
|
||||
kill $!
|
||||
echo Ok:$?
|
|
@ -0,0 +1,2 @@
|
|||
Background1
|
||||
Ok:0
|
|
@ -0,0 +1,7 @@
|
|||
sleep 1 && echo "Background1" &
|
||||
pid=$!
|
||||
sleep 3 && echo "Background2: BUG!" &
|
||||
# Shouldn't wait for 2nd bkgd:
|
||||
wait $pid
|
||||
kill $!
|
||||
echo Ok:$?
|
Loading…
Reference in New Issue