$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
In reply to Re: Parallel::ForkManager never reaching run_on_finish()
by Loops
in thread Parallel::ForkManager never reaching run_on_finish()
by swafo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |