in reply to Parallel ForkManager problem: parent dies early before all the child finishes

A guess just from glancing at your code, your (MAX_PROCESSES) is ($tc-1). When you go into your loop, your upper limit is $tc. It's conceivable, your MAX_PROCESSES is being hit. If a count starts at 0, you might be 2 off from 10.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Parallel ForkManager problem: parent dies early before all the child finishes

Replies are listed 'Best First'.
Re^2: Parallel ForkManager problem: parent dies early before all the child finishes
by delirium (Chaplain) on Aug 18, 2011 at 17:03 UTC
    I don't think ForkManager crashes if you go over the limit; I think it waits. It's possible there is a system limit on the number of process that you're going over.