summaryrefslogtreecommitdiff
path: root/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp
diff options
context:
space:
mode:
authorelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-02-20 14:43:50 +0000
committerelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-02-20 14:43:50 +0000
commit3eaa63bd1e6658413faf535dd2f71efc10f7aaef (patch)
tree914121bc0054f74c65b361cad9ffab299223567d /ACE/examples/Connection/blocking/SPIPE-acceptor.cpp
parent0944b607c618e28e0394428d7196f919cd9f721c (diff)
downloadATCD-3eaa63bd1e6658413faf535dd2f71efc10f7aaef.tar.gz
ChangeLogTag: Tue Feb 20 14:43:00 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'ACE/examples/Connection/blocking/SPIPE-acceptor.cpp')
-rw-r--r--ACE/examples/Connection/blocking/SPIPE-acceptor.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp b/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp
index 8885b0353cd..ba0001011b6 100644
--- a/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp
+++ b/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp
@@ -188,16 +188,17 @@ IPC_Server::svc (void)
// Run single-threaded.
if (n_threads_ <= 1)
run_reactor_event_loop (0);
- else if (ACE_Thread_Manager::instance ()->spawn_n
+ else
+ {
+ if (ACE_Thread_Manager::instance ()->spawn_n
(n_threads_,
run_reactor_event_loop,
0,
THR_NEW_LWP) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("spawn_n")),
- 1);
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("spawn_n")),
+ 1);
ACE_Thread_Manager::instance ()->wait ();
}