summaryrefslogtreecommitdiff
path: root/ACE/ace/Process_Manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Process_Manager.cpp')
-rw-r--r--ACE/ace/Process_Manager.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/ACE/ace/Process_Manager.cpp b/ACE/ace/Process_Manager.cpp
index 369584cf4b4..f7e6b7897b0 100644
--- a/ACE/ace/Process_Manager.cpp
+++ b/ACE/ace/Process_Manager.cpp
@@ -19,6 +19,7 @@
#include "ace/OS_NS_signal.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_time.h"
+#include "ace/os_include/os_typeinfo.h"
#include "ace/Truncate.h"
ACE_RCSID (ace,
@@ -131,11 +132,13 @@ ACE_Process_Manager::instance (void)
#if defined ACE_HAS_SIG_C_FUNC
ACE_Object_Manager::at_exit (ACE_Process_Manager::instance_,
ACE_Process_Manager_cleanup,
- 0);
+ 0,
+ typeid (*ACE_Process_Manager::instance_).name ());
#else
ACE_Object_Manager::at_exit (ACE_Process_Manager::instance_,
ACE_Process_Manager::cleanup,
- 0);
+ 0,
+ typeid (*ACE_Process_Manager::instance_).name ());
#endif /* ACE_HAS_SIG_C_FUNC */
}
@@ -162,11 +165,13 @@ ACE_Process_Manager::instance (ACE_Process_Manager *tm)
#if defined ACE_HAS_SIG_C_FUNC
ACE_Object_Manager::at_exit (ACE_Process_Manager::instance_,
ACE_Process_Manager_cleanup,
- 0);
+ 0,
+ typeid (*ACE_Process_Manager::instance_).name ());
#else
ACE_Object_Manager::at_exit (ACE_Process_Manager::instance_,
ACE_Process_Manager::cleanup,
- 0);
+ 0,
+ typeid (*ACE_Process_Manager::instance_).name ());
#endif /* ACE_HAS_SIG_C_FUNC */
ACE_Process_Manager::instance_ = tm;
@@ -427,7 +432,7 @@ ACE_Process_Manager::spawn (ACE_Process_Options &options,
ACE_Managed_Process,
ACE_INVALID_PID);
- pid_t const pid = spawn (process, options, event_handler);
+ pid_t const pid = this->spawn (process, options, event_handler);
if (pid == ACE_INVALID_PID || pid == 0)
delete process;
@@ -686,7 +691,7 @@ ACE_Process_Manager::find_proc (pid_t pid)
{
ACE_TRACE ("ACE_Process_Manager::find_proc");
- for (size_t i = 0; i < this->current_count_; ++i)
+ for (size_t i = 0; i < this->current_count_; ++i)
{
if (pid == this->process_table_[i].process_->getpid ())
{
@@ -841,7 +846,7 @@ ACE_Process_Manager::wait (pid_t pid,
// 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. Same for mingw.
-# if defined (ghs) || defined (__MINGW32__) || (defined (_MSC_VER) && _MSC_VER >= 1300)
+# if defined (ghs) || defined (__MINGW32__) || defined (_MSC_VER)
ACE_ASSERT (result < WAIT_OBJECT_0 + this->current_count_);
# else
ACE_ASSERT (result >= WAIT_OBJECT_0