summaryrefslogtreecommitdiff
path: root/ACE/ace/ACE.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-12-05 15:24:24 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-12-05 15:24:24 +0000
commit47a1ba88fffd0ef4fb1e0ec71ad54bc817eba427 (patch)
tree7d397308f8855a71adc23419a21d6ff05991fee5 /ACE/ace/ACE.cpp
parentc14f8ccf1b9d90c8471ca420fa392915829135ea (diff)
downloadATCD-47a1ba88fffd0ef4fb1e0ec71ad54bc817eba427.tar.gz
Tue Dec 5 15:08:43 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/ACE.cpp')
-rw-r--r--ACE/ace/ACE.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/ACE/ace/ACE.cpp b/ACE/ace/ACE.cpp
index bfc8a867d6c..ea4d8a7bf46 100644
--- a/ACE/ace/ACE.cpp
+++ b/ACE/ace/ACE.cpp
@@ -2888,13 +2888,8 @@ ACE::fork (const ACE_TCHAR *program_name,
}
// Parent process waits for child to terminate.
-#if defined (ACE_HAS_UNION_WAIT)
- union wait status;
- if (pid < 0 || ACE_OS::waitpid (pid, &(status.w_status), 0) < 0)
-#else
- ACE_exitcode status;
+ ACE_exitcode status;
if (pid < 0 || ACE_OS::waitpid (pid, &status, 0) < 0)
-#endif /* ACE_HAS_UNION_WAIT */
return -1;
// child terminated by calling exit()?