summaryrefslogtreecommitdiff
path: root/ace/Process_Manager.cpp
diff options
context:
space:
mode:
authoroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-19 18:23:54 +0000
committeroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-19 18:23:54 +0000
commitbf866ff95b78c58e6e05a86b97d89f646c6b6900 (patch)
tree8400f44ec23f635fd4b358fe3e2eba22df0a6b1e /ace/Process_Manager.cpp
parente41ccabd4ed1e1fbfe4a0f65b44372a3344c36a4 (diff)
downloadATCD-bf866ff95b78c58e6e05a86b97d89f646c6b6900.tar.gz
Changes to support Green Hills Native x86 compiler.
Diffstat (limited to 'ace/Process_Manager.cpp')
-rw-r--r--ace/Process_Manager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp
index cce3aa3f349..5d90e221e86 100644
--- a/ace/Process_Manager.cpp
+++ b/ace/Process_Manager.cpp
@@ -809,8 +809,15 @@ ACE_Process_Manager::wait (pid_t pid,
pid = 0;
else
{
+ // Green Hills produces a warning that result >= WAIT_OBJECT_0 is
+ // a pointless comparison because WAIT_OBJECT_0 is zero and DWORD is
+ // unsigned long, so this test is skipped for Green Hills.
+# if defined (ghs)
+ ACE_ASSERT (result < WAIT_OBJECT_0 + current_count_);
+# else
ACE_ASSERT (result >= WAIT_OBJECT_0
&& result < WAIT_OBJECT_0 + current_count_);
+# endif
idx = this->find_proc (handles[result - WAIT_OBJECT_0]);