2009/4/19 Dan Linder <span dir="ltr">&lt;<a href="mailto:dan@linder.org">dan@linder.org</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What I&#39;d like to do is have the parent process fork a number of children processes and wait for one to complete, then start another child to work on the next remaining subroutine.</blockquote><div><br>So you&#39;d like to have x child processes running at any given time?  Will all the child processes be doing the same sort of work?<br>
<br>I would think &quot;wait&quot; (rather than &quot;waitpid&quot;) should fit the bill, as &quot;wait&quot; should return the PID of whatever child exited most recently, right?<br><br></div></div>-- <br>Dave Burchell<br>