summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLike Ma <likemartinma@gmail.com>2019-12-11 11:46:18 +0800
committerLike Ma <likemartinma@gmail.com>2019-12-11 11:46:18 +0800
commite50e472d2c527525e92cfcad6fd8b00c044a7f47 (patch)
treed4402658102e9cac412562f745bd24e2fa0f42c1
parent3cb77e292612ea00bfc9b39d2d7103c50fa5e54c (diff)
downloadATCD-e50e472d2c527525e92cfcad6fd8b00c044a7f47.tar.gz
Set ERANGE instead of EINVAL in Dev_Poll_Reactor::handle_in_range.
-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 55cb4d4d5a3..5de43a700cf 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;
}