in reply to Re^4: Parallel ForkManager problem: parent dies early before all the child finishes
in thread Parallel ForkManager problem: parent dies early before all the child finishes

This is in accordance with ikegami's advice: Do you have signal handlers in the parent?

I'm just guessing here, but read O'Reilly forking child processes in cgi

It may be that you are not handling the SIG{'CHILD'} for the parallel processes correctly. It recommends

$SIG{'CHLD'} = "wait_for_child_to_die"; sub wait_for_child_to_die{ wait; }

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