summaryrefslogtreecommitdiff
path: root/ace/Process_Manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Process_Manager.cpp')
-rw-r--r--ace/Process_Manager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp
index d1d3f0ada79..f3581390241 100644
--- a/ace/Process_Manager.cpp
+++ b/ace/Process_Manager.cpp
@@ -265,9 +265,12 @@ ACE_Process_Manager::terminate (pid_t pid)
if (result == -1)
{
- // Save/restore errno.
- ACE_Errno_Guard error (errno);
+ // We need to save this across calls to remove_thr() since that
+ // call may reset errno.
+ int error = errno;
+
this->remove (this->proc_table_[i].proc_id_);
+ errno = error;
return -1;
}
else