metaperl has asked for the wisdom of the Perl Monks concerning the following question:
The one thing I like more about Parallel::ForkManager is $pm->wait_all_children; - the ability to wait on all the children via a single method call.
The Proc::Fork docs show a call to waitpid but it is not clear how to wait on all children, ignoring those who have died. How would such a function be written? UPDATE The important variation on wait_all_children for my purposes is non-blocking wait: if one of the children dies, then that is perfectly fine. But we wait on those that have not died until they finish.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: wait_all_children for Proc::Fork?
by ikegami (Patriarch) on Jun 09, 2009 at 16:17 UTC | |
|
Re: wait_all_children for Proc::Fork?
by repellent (Priest) on Jun 09, 2009 at 17:41 UTC | |
by Bloodnok (Vicar) on Jun 10, 2009 at 09:15 UTC | |
by repellent (Priest) on Jun 10, 2009 at 17:22 UTC |