Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 browsing the Monastery: (6)
As of 2014-12-28 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls