diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-17 05:37:24 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-17 05:37:24 +0000 |
commit | d633988f7ff0eb765537e22e4348d3d99f0a8539 (patch) | |
tree | c44a0392d237aef12671fbe0c7c8635c1ca5aff2 /bin | |
parent | 74b0e806f381c37472061eaa5cf72ee0807df10b (diff) | |
download | ATCD-d633988f7ff0eb765537e22e4348d3d99f0a8539.tar.gz |
Fixed the child process return status code.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Process_Win32.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/Process_Win32.pm b/bin/Process_Win32.pm index 30d557e0c68..7caca7c494b 100644 --- a/bin/Process_Win32.pm +++ b/bin/Process_Win32.pm @@ -20,10 +20,10 @@ sub Create $console = 0; } - Win32::Process::Create ($self->[0], $name, $name." ".$args, 0, + Win32::Process::Create ($self->[0], $name, $name." ".$args, 0, $console, "."); bless $self; -} +} sub Kill { @@ -48,9 +48,9 @@ sub TimedWait my $self = shift; my $maxtime = shift; Win32::Process::Wait ($self->[0], $maxtime * 1000); - # @@ TODO figure out if we exit because of a timeout and return -1 - # in that case. - return 0; + $status = 0; + Win32::Process::GetExitCode ($self->[0], $status); + return $status; } 1; |