in reply to Parallel::ForkManager run_on_finish() bug?
After more head-scratching I suppose my code is asking too much. I expect run_on_finish() to act asynchronously like the signal but its becoming obvious P:FM relies on being inside P::FM::start() or P::FM::wait_all_children() to execute its callbacks.
I would settle for a documentation update that clarifies that run_on_finish() is not asynchronous unless you link it to SIG{CHLD}. An optional flag to run_on_finish() that installs the SIG{CHLD} handler for you would be nice though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel::ForkManager run_on_finish() bug?
by runrig (Abbot) on May 04, 2012 at 16:13 UTC | |
by bsingh (Novice) on Jul 15, 2013 at 07:38 UTC |