diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-15 03:12:44 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-15 03:12:44 +0000 |
commit | 228c8de5de3f86e73a5c21bd78e217513e0bdff7 (patch) | |
tree | b765703d35c587f4d3d1107451ae72d9dd1c1667 /ace/Process_Manager.cpp | |
parent | 519f4dbf10b1d0cc3843ec3cf46f7c9896127699 (diff) | |
download | ATCD-228c8de5de3f86e73a5c21bd78e217513e0bdff7.tar.gz |
ChangeLogTag: Tue Sep 14 22:10:24 1999 Kristopher Johnson <kjohnson@gardnersys.com>
Diffstat (limited to 'ace/Process_Manager.cpp')
-rw-r--r-- | ace/Process_Manager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp index 7c6490539d3..164dccbbdf6 100644 --- a/ace/Process_Manager.cpp +++ b/ace/Process_Manager.cpp @@ -755,8 +755,7 @@ ACE_Process_Manager::wait (pid_t pid, HANDLE[current_count_], ACE_INVALID_PID); - size_t i; - for (i = 0; + for (size_t i = 0; i < current_count_; ++i) handles[i] = @@ -781,7 +780,7 @@ ACE_Process_Manager::wait (pid_t pid, if (idx != -1) { - pid = process_table_[i].process_->getpid (); + pid = process_table_[idx].process_->getpid (); result = ::GetExitCodeProcess (handles[result - WAIT_OBJECT_0], status); if (result == 0) |