summaryrefslogtreecommitdiff
path: root/ace/Process_Manager.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-15 03:12:44 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-15 03:12:44 +0000
commit228c8de5de3f86e73a5c21bd78e217513e0bdff7 (patch)
treeb765703d35c587f4d3d1107451ae72d9dd1c1667 /ace/Process_Manager.cpp
parent519f4dbf10b1d0cc3843ec3cf46f7c9896127699 (diff)
downloadATCD-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.cpp5
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)