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

Re: how do I extract status from the response of waitpid ?

by pme (Monsignor)
on Aug 14, 2015 at 11:38 UTC ( [id://1138567]=note: print w/replies, xml ) Need Help??


in reply to how do I extract status from the response of waitpid ?

The exit code is '$? >> 8', not the returned value. $? is documented in perlvar man page.
  • Comment on Re: how do I extract status from the response of waitpid ?

Replies are listed 'Best First'.
Re^2: how do I extract status from the response of waitpid ?
by ikegami (Patriarch) on Aug 14, 2015 at 12:17 UTC
    $? >> 8 is only meaningful if waitpid returned a value greater than zero and if $? != -1 && ($? & 0x7F) == 0.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-24 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found