I usually do 1 until -1 == wait;, but waitpid would work just as well.
Abigail
In reply to Re: Don't wait: waitpid. Why? by Abigail-II in thread Run N similar tasks in parallel by bronto