diff options
Diffstat (limited to 'ACE/ace/Select_Reactor_Base.cpp')
-rw-r--r-- | ACE/ace/Select_Reactor_Base.cpp | 6 |
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(); |