summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-10 16:10:10 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-10 16:10:10 +0000
commit3dd689d810332024c96d48e076c95ddd966649e8 (patch)
tree1e1e383807d6ba936a6bfe55c54fd35ebe385ea8 /examples
parent7c0c86fe9c456aab0dc445c4d6bcc589eacaf7b1 (diff)
downloadATCD-3dd689d810332024c96d48e076c95ddd966649e8.tar.gz
*** empty log message ***
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)
{