Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Getting a return code from waitpid in Windows

by ikegami (Pope)
on Jan 20, 2014 at 20:11 UTC ( #1071376=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use POSIX qw( WNOHANG );
    
    ...
    }
    
    print "Command completed with exit code $?.\n";
    
  2. or download this
    my $pid = system(1,'perl -e"sleep(4); exit(5);"');
    
    waitpid($pid, 0);
    die $! if $? < 0;
    print "Command completed with exit code $?.\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-08-30 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls