summaryrefslogtreecommitdiff
path: root/ACE/ace/Select_Reactor_Base.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-03-06 02:16:54 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-03-06 02:16:54 +0000
commitd7c15e6b90ee1113d65bc621a11c093c3d01ac22 (patch)
treee97e7c73f395f3c00752a6fad9d5d6858a8f9509 /ACE/ace/Select_Reactor_Base.cpp
parent15ea7d66b8a06acba82534d027b13a24762a8669 (diff)
downloadATCD-fix_bug_2820.tar.gz
Tue Mar 6 02:07:43 UTC 2007 Carlos O'Ryan <coryan@atdeesk.com>fix_bug_2820
Diffstat (limited to 'ACE/ace/Select_Reactor_Base.cpp')
-rw-r--r--ACE/ace/Select_Reactor_Base.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/Select_Reactor_Base.cpp b/ACE/ace/Select_Reactor_Base.cpp
index 73412037931..35896b41c09 100644
--- a/ACE/ace/Select_Reactor_Base.cpp
+++ b/ACE/ace/Select_Reactor_Base.cpp
@@ -646,9 +646,9 @@ ACE_Select_Reactor_Notify::close (void)
// "stored" in the pipe had their reference counts increased. We
// need to decrease them before closing the pipe....
ACE_Notification_Buffer b;
- for (int r = 0;
- r = read_notify_pipe(notification_pipe_.read_handle(), b);
- r != -1)
+ for (int r = read_notify_pipe(notification_pipe_.read_handle(), b);
+ r > 0;
+ r = read_notify_pipe(notification_pipe_.read_handle(), b))
{
if (b.eh_ == 0) continue;
b.eh_->remove_reference();