in reply to Parallel::ForkManager never reaching run_on_finish()

$pm->wait_all_child; should instead be $pm->wait_all_children.

The other larger problem is that the signal handler for child termination is gumming up the works. If you just comment out $SIG{CHLD} = \&REAP; the code works okay and run_on_finish() is properly called

  • Comment on Re: Parallel::ForkManager never reaching run_on_finish()

Replies are listed 'Best First'.
Re^2: Parallel::ForkManager never reaching run_on_finish()
by swafo (Initiate) on Jul 24, 2013 at 21:41 UTC

    Thank you so much.
    I knew it had to be something small I was missing... that's what you get when you stare at the code too long.

    Again, thank you very much!