diff options
author | Like Ma <likemartinma@gmail.com> | 2019-12-11 11:46:18 +0800 |
---|---|---|
committer | Like Ma <likemartinma@gmail.com> | 2019-12-11 11:46:18 +0800 |
commit | e50e472d2c527525e92cfcad6fd8b00c044a7f47 (patch) | |
tree | d4402658102e9cac412562f745bd24e2fa0f42c1 /ACE/ace/Dev_Poll_Reactor.cpp | |
parent | 3cb77e292612ea00bfc9b39d2d7103c50fa5e54c (diff) | |
download | ATCD-e50e472d2c527525e92cfcad6fd8b00c044a7f47.tar.gz |
Set ERANGE instead of EINVAL in Dev_Poll_Reactor::handle_in_range.
Diffstat (limited to 'ACE/ace/Dev_Poll_Reactor.cpp')
-rw-r--r-- | ACE/ace/Dev_Poll_Reactor.cpp | 3 |
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; } |