in reply to Re^3: Parallel::ForkManager problem
in thread Parallel::ForkManager problem
well, no, you have stoped reading too soon:
in my code, it is set to the exit code of the child by waitpid.$? The status returned by the last pipe close, backtick (``) command, successful call to wait() or waitpid(), or from the system() operator.
It is negated because by convention, exit code 0 means success and any other value failure. Also because this way I don't have to split $? into the signal part and the exit code:
$signal = $? & 255; $exit_code = $? >> 8;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Parallel::ForkManager problem
by Limbic~Region (Chancellor) on Mar 28, 2006 at 16:20 UTC |