summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
index b5b8b368785..73206d05b89 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
@@ -322,9 +322,10 @@ run_event_loop (u_short port)
for (;;)
{
ACE_Time_Value timeout (ACE_DEFAULT_TIMEOUT);
+ ACE_Handle_Set temp = handle_set;
int result = ACE_OS::select (int (oneway_acceptor.get_handle ()) + 1,
- (fd_set *) handle_set,
+ (fd_set *) &temp,
0,
0,
timeout);
@@ -337,7 +338,7 @@ run_event_loop (u_short port)
"(%P|%t) select timed out\n"));
else
{
- if (handle_set.is_set (twoway_acceptor.get_handle ()))
+ if (temp.is_set (twoway_acceptor.get_handle ()))
{
if (twoway_acceptor.accept (new_stream) == -1)
{
@@ -354,7 +355,7 @@ run_event_loop (u_short port)
run_server (twoway_server,
new_stream.get_handle ());
}
- if (handle_set.is_set (oneway_acceptor.get_handle ()))
+ if (temp.is_set (oneway_acceptor.get_handle ()))
{
if (oneway_acceptor.accept (new_stream) == -1)
{