jobs
This commit is contained in:
parent
bed013a584
commit
7268ae5594
@ -15,9 +15,11 @@ count=0
|
|||||||
processes+=($!)
|
processes+=($!)
|
||||||
while [[ "$count" -ge "$update_limit" ]]
|
while [[ "$count" -ge "$update_limit" ]]
|
||||||
do
|
do
|
||||||
|
jobs -p
|
||||||
|
pidcount=0
|
||||||
echo "waiting for free space"
|
echo "waiting for free space"
|
||||||
wait -n "${processes[@]}"
|
wait -n "${processes[pidcount]}" && (( count-- ))
|
||||||
(( count-- ))
|
(( pidcount ++ ))
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user