in reply to Re: Getting a return code from waitpid in Windows
in thread Getting a return code from waitpid in Windows
The output is "Command completed with exit code -1 with return code -1".my $wait = 0; my $pid = system(1,"cmd..."); do { $wait = waitpid($pid,WNOHANG); } while ($wait != -1); $rc = $?; print "Command completed with exit code $wait with return code $rc.\n" +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting a return code from waitpid in Windows
by ikegami (Patriarch) on Jan 20, 2014 at 20:11 UTC | |
|
Re^3: Getting a return code from waitpid in Windows
by huskerben (Initiate) on Jan 20, 2014 at 18:46 UTC |