Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to optionally kill a child, and capture status if not killed.

by sgifford (Prior)
on Apr 25, 2008 at 20:30 UTC ( #682908=note: print w/replies, xml ) Need Help??


in reply to How to optionally kill a child, and capture status if not killed.

For the status, are you looking for just the exit status you get from wait? If so, have the monitor process read the exit status from the child process, then just call exit to exit with the same status. Things get a bit more complicated if you want to keep all of the information returned by wait, such as whether the process was killed by the signal and whether it dumped core, but often you don't.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2023-03-26 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?