in reply to Re: Should I call waitpid when using Parallel::ForkManager to fork in an infinite loop?
in thread Should I call waitpid when using Parallel::ForkManager to fork in an infinite loop?
Is that true? I thought that $pm->finish did the reap, and allowed the manager to start another process (assuming that $max_procs processes have been started already)?
So the OPs code would maintain $max_procs children at all time (because of the while (1) ), and as you said, no explicit cleanup or reaping need be added, because of the wonderfulness of Parallel::ForkManager!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Should I call waitpid when using Parallel::ForkManager to fork in an infinite loop?
by ikegami (Patriarch) on Aug 16, 2009 at 16:54 UTC |