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