summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ACE/ace/Dev_Poll_Reactor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ACE/ace/Dev_Poll_Reactor.cpp b/ACE/ace/Dev_Poll_Reactor.cpp
index 7dcc9f995ce..fbd9b4485f0 100644
--- a/ACE/ace/Dev_Poll_Reactor.cpp
+++ b/ACE/ace/Dev_Poll_Reactor.cpp
@@ -448,7 +448,7 @@ ACE_Dev_Poll_Reactor::Handler_Repository::handle_in_range (
return true;
else
{
- errno = EINVAL;
+ errno = ERANGE;
return false;
}
}
@@ -520,7 +520,6 @@ ACE_Dev_Poll_Reactor::Handler_Repository::find (ACE_HANDLE handle)
// Only bother to search for the <handle> if it's in range.
if (!this->handle_in_range (handle))
{
- errno = ERANGE;
return 0;
}