Subject: | $? unreliable on program exit |
We've noticed a problem whereby the exit status from a program using Proc::Simple can
sometimes be odd if the THE_REAPER routine has trouble cleaning up a child process. Would it
be possible for
local($?);
to be added to the top of THE_REAPER sub so that the exit status from waitpid does not leak
out? The value of $? is captured in $EXIT_STATUS so I don't think there is any problem in
localising $?. The perl manpage does warn that the value of $? will cause problems if signal
handlers for SIGCHLD are installed.
Tim