summaryrefslogtreecommitdiff
path: root/ace/Process_Manager.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-01-27 02:44:50 +0000
committerSteve Huston <shuston@riverace.com>2002-01-27 02:44:50 +0000
commit44391e47d90a1875b8518369bbd3390c0606d46e (patch)
tree57f9ef07bff22cfad029fb7488e127038f8e0415 /ace/Process_Manager.cpp
parente5f11c94dab8142eb16a7169247498c2db72fb68 (diff)
downloadATCD-44391e47d90a1875b8518369bbd3390c0606d46e.tar.gz
ChangeLogTag:Sat Jan 26 21:41:39 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Process_Manager.cpp')
-rw-r--r--ace/Process_Manager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp
index b0df10a8a62..01065ced6bd 100644
--- a/ace/Process_Manager.cpp
+++ b/ace/Process_Manager.cpp
@@ -804,9 +804,6 @@ ACE_Process_Manager::wait (pid_t pid,
WNOHANG);
else
{
- ACE_Time_Value wait_until =
- timeout + ACE_OS::gettimeofday();
-
for (;;)
{
pid = ACE_OS::waitpid (-(ACE_OS::getpid()),
@@ -858,7 +855,7 @@ ACE_Process_Manager::wait (pid_t pid,
// this is that once ualarm is enabled, the SIGALRM will fire
// whether we're still here waiting or not. On some platforms,
// this will cause a core dump on uncaught signal.
- ACE_Time_Value time_left = wait_until - ACE_OS::gettimeofday ();
+ ACE_Time_Value time_left (timeout);
// if ACE_OS::ualarm doesn't have sub-second resolution:
time_left += ACE_Time_Value (0, 500000);