in reply to Re^3: Parallel::ForkManager run_on_finish Canot get Exit Code of Child process
in thread Parallel::ForkManager run_on_finish Canot get Exit Code of Child process

Then how to get it. Please elaborate? I am badly stuck in this.
  • Comment on Re^4: Parallel::ForkManager run_on_finish Canot get Exit Code of Child process

Replies are listed 'Best First'.
Re^5: Parallel::ForkManager run_on_finish Canot get Exit Code of Child process
by ikegami (Patriarch) on Dec 02, 2011 at 19:40 UTC
    I pointed you to documentation the states the following:
    $? == -1: Error launching child (See $! for cause) $? & 0x7F: Child died from this signal if non-zero $? >> 8: Child's exit code
Re^5: Parallel::ForkManager run_on_finish Canot get Exit Code of Child process
by runrig (Abbot) on Dec 02, 2011 at 21:46 UTC
    Why are you badly stuck? Did you see my response? Let P::FM do the work of getting the exit status. Also, in run_on_finish(), you are checking for core dump, and the exit code, but not the signal, if any. Why not check that also?