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 | ae4e0cc8f9fda98dd7e35f2128c987285e418ee0 (patch) | |
tree | c44a0392d237aef12671fbe0c7c8635c1ca5aff2 /bin | |
parent | eead1aecbd1396394619a2c7a683626e2558b473 (diff) | |
download | ATCD-ae4e0cc8f9fda98dd7e35f2128c987285e418ee0.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; |