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