summaryrefslogtreecommitdiff
path: root/ace/Proactor.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-12-17 19:05:35 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-12-17 19:05:35 +0000
commitb04ebbbcabc2a64a893337882c9fe214334273b9 (patch)
tree0626e49e58430ca3c7753560819b12d63f499564 /ace/Proactor.cpp
parentb2d6ed41b6163ff286ca39b5638da486e873784c (diff)
downloadATCD-b04ebbbcabc2a64a893337882c9fe214334273b9.tar.gz
.
Diffstat (limited to 'ace/Proactor.cpp')
-rw-r--r--ace/Proactor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/ace/Proactor.cpp b/ace/Proactor.cpp
index 9bb266c5951..1e3d7569750 100644
--- a/ace/Proactor.cpp
+++ b/ace/Proactor.cpp
@@ -716,16 +716,20 @@ ACE_Proactor::handle_signal (int, siginfo_t *, ucontext_t *)
ACE_Time_Value timeout (0, 0);
int result = 0;
- while (1)
+ for (;;)
{
result = this->handle_events (timeout);
+
if (result != 0 || errno == ETIME)
break;
}
// If our handle_events failed, we'll report a failure to the
// Reactor.
- return result == -1 ? -1 : 0;
+ if (result == -1)
+ return -1;
+ else
+ return 0;
}
int