Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Proc::Simple - exit_status function returns -1

by Perlbotics (Canon)
on Aug 01, 2013 at 18:43 UTC ( #1047496=note: print w/ replies, xml ) Need Help??


in reply to Proc::Simple - exit_status function returns -1

Please update your Module.

I've also seen this bug and posted a patch here which was accepted and merged into version 1.28.

Title: exit_status() can fail to return valid exit state after sufficently long runtime.

Problem:
A main process that runs sufficiently long might get an 'undef' or -1 form exit_status() instead of the real execution status.
...
Analysis:
If a Proc::Simple variable/object is DESTROYed while the associated Proc::Simple-process has already terminated, the PID is unnecessarily remembered in %DESTROYED for later reaping. If another process re-uses the PID (e.g. after the OS' PID wrap-around) the process is reaped by sub THE_REAPER and the execution state is lost since the %DESTROYED hash is checked before the %EXIT_STATUS hash there.
...


Comment on Re: Proc::Simple - exit_status function returns -1

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047496]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2015-07-29 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (261 votes), past polls