Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by pme (Prior)
on Aug 14, 2015 at 11:38 UTC ( #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 (Pope) 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
Node Status?
node history
Node Type: note [id://1138567]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-01-25 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?