http://qs321.pair.com?node_id=238779


in reply to •Re: Don't wait: waitpid. Why?
in thread Run N similar tasks in parallel

Eh, if you wanted to wait until there are no more kids, you want a blocking call, inside a loop, wouldn't you?

I usually do 1 until -1 == wait;, but waitpid would work just as well.

Abigail