summaryrefslogtreecommitdiff
path: root/ace/Select_Reactor.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-23 17:29:21 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-23 17:29:21 +0000
commit380b07b9efd2a0f5005e874baca843344ddf8f6d (patch)
treef77dd26b67e0e4f5ff91aa9d12de4eeeacbcdca1 /ace/Select_Reactor.cpp
parent051505284466d79c4720643d099df71308c2c861 (diff)
downloadATCD-380b07b9efd2a0f5005e874baca843344ddf8f6d.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Select_Reactor.cpp')
-rw-r--r--ace/Select_Reactor.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ace/Select_Reactor.cpp b/ace/Select_Reactor.cpp
index a4c2fca700b..c74f7a4e077 100644
--- a/ace/Select_Reactor.cpp
+++ b/ace/Select_Reactor.cpp
@@ -104,7 +104,13 @@ ACE_Select_Reactor_Handler_Repository::open (size_t size)
for (size_t h = 0; h < size; h++)
ACE_SELECT_REACTOR_EVENT_HANDLER (this, h) = 0;
#endif /* ACE_WIN32 */
- return 0;
+
+ // Increase the number of handles if <size> is greater than the
+ // current limit.
+ if (size > ACE::max_handles ())
+ return ACE::set_handle_limit (size);
+ else
+ return 0;
}
// Initialize a repository of the appropriate <size>.