summaryrefslogtreecommitdiff
path: root/ace/WFMO_Reactor.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-30 18:13:57 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-30 18:13:57 +0000
commit7bbd275f4e29ccb4c3f3babaa1d06c5ab1002658 (patch)
treedf844ccf82ec7463a0ca7d809abe839a739b0345 /ace/WFMO_Reactor.cpp
parent4033f2f51368f0f7b804428614eb34c79423da20 (diff)
downloadATCD-7bbd275f4e29ccb4c3f3babaa1d06c5ab1002658.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/WFMO_Reactor.cpp')
-rw-r--r--ace/WFMO_Reactor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ace/WFMO_Reactor.cpp b/ace/WFMO_Reactor.cpp
index 4260c99042e..683ef464219 100644
--- a/ace/WFMO_Reactor.cpp
+++ b/ace/WFMO_Reactor.cpp
@@ -24,6 +24,13 @@ ACE_WFMO_Reactor_Handler_Repository::ACE_WFMO_Reactor_Handler_Repository (ACE_WF
int
ACE_WFMO_Reactor_Handler_Repository::open (size_t size)
{
+ if (size > MAXIMUM_WAIT_OBJECTS)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ASYS_TEXT ("%d exceeds MAXIMUM_WAIT_OBJECTS (%d)\n"),
+ size,
+ MAXIMUM_WAIT_OBJECTS),
+ -1);
+
// Dynamic allocation
ACE_NEW_RETURN (this->current_handles_,
ACE_HANDLE[size],