Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: native exit codes 512 and 2304

by gmargo (Hermit)
on Jan 20, 2010 at 16:12 UTC ( [id://818499]=note: print w/replies, xml ) Need Help??


in reply to native exit codes 512 and 2304

Decode these using the proper definitions from POSIX:

use POSIX qw(:sys_wait_h); decode_status(512); decode_status(2304); sub decode_status { my ($rc) = @_; print "$rc: normal exit with code ". WEXITSTATUS($rc)."\n" if WIFE +XITED( $rc); print "$rc: terminated with signal ".WTERMSIG( $rc)."\n" if WIFS +IGNALED($rc); print "$rc: stopped with signal ". WSTOPSIG( $rc)."\n" if WIFS +TOPPED( $rc); } __END__ 512: normal exit with code 2 2304: normal exit with code 9

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-07-17 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.