summaryrefslogtreecommitdiff
path: root/ACE/ace/Dev_Poll_Reactor.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2012-05-11 19:16:53 +0000
committerSteve Huston <shuston@riverace.com>2012-05-11 19:16:53 +0000
commita04f61d800e7e3be7ab15a05d3f773b1ff84ce08 (patch)
treefb33797f2669a1b442020fb515fe5f351d2661c3 /ACE/ace/Dev_Poll_Reactor.cpp
parent8ca8d6f9ab72a2bf2c8ef8139ea1052220466ed8 (diff)
downloadATCD-a04f61d800e7e3be7ab15a05d3f773b1ff84ce08.tar.gz
ChangeLogTag:Fri May 11 17:42:08 UTC 2012 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/Dev_Poll_Reactor.cpp')
-rw-r--r--ACE/ace/Dev_Poll_Reactor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/Dev_Poll_Reactor.cpp b/ACE/ace/Dev_Poll_Reactor.cpp
index e417602bf3c..85b296e1849 100644
--- a/ACE/ace/Dev_Poll_Reactor.cpp
+++ b/ACE/ace/Dev_Poll_Reactor.cpp
@@ -2378,8 +2378,8 @@ ACE_Dev_Poll_Reactor::mask_ops_i (ACE_HANDLE handle,
// If a handle is closed, epoll removes it from the poll set
// automatically - we may not know about it yet. If that's the
// case, a mod operation will fail with ENOENT. Retry it as
- // an add.
- if (op == EPOLL_CTL_MOD && errno == ENOENT &&
+ // an add. If it's any other failure, just fail outright.
+ if (op != EPOLL_CTL_MOD || errno != ENOENT ||
::epoll_ctl (this->poll_fd_, EPOLL_CTL_ADD, handle, &epev) == -1)
return -1;
}