diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-09 06:49:04 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-09 06:49:04 +0000 |
commit | 07827397a60b1770afd99f07e06bfa5cfd0d380a (patch) | |
tree | 43e7826d8638abd061cf9d837a2ab38cc72a1937 /tests/IOStream_Test.cpp | |
parent | 05014d9804c10682c69240271c3bb6268ddf274a (diff) | |
download | ATCD-07827397a60b1770afd99f07e06bfa5cfd0d380a.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/IOStream_Test.cpp')
-rw-r--r-- | tests/IOStream_Test.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/IOStream_Test.cpp b/tests/IOStream_Test.cpp index e41a95e45d7..be0cfc1c683 100644 --- a/tests/IOStream_Test.cpp +++ b/tests/IOStream_Test.cpp @@ -332,7 +332,7 @@ spawn (void) ACE_SOCK_Acceptor acceptor; if (acceptor.open ((const ACE_INET_Addr &) ACE_Addr::sap_any) == -1) - ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p\n", "open"), -1)); + ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p\n", "open"), -1); #if defined (ACE_HAS_THREADS) else if (ACE_Service_Config::thr_mgr ()->spawn (ACE_THR_FUNC (server), &acceptor, @@ -351,13 +351,15 @@ spawn (void) ACE_ERROR ((LM_ERROR, "%p\n%a", "fork failed")); ACE_OS::_exit (-1); case 0: // In child - ACE_INET_Addr server_addr; - - if (acceptor.get_local_addr (server_addr) == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "get_local_addr"), -1); - else - client ((void *) &server_addr); - break; + { + ACE_INET_Addr server_addr; + + if (acceptor.get_local_addr (server_addr) == -1) + ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "get_local_addr"), -1); + else + client ((void *) &server_addr); + break; + } default: // In parent server (&acceptor); @@ -370,6 +372,7 @@ spawn (void) "threads *and* processes not supported on this platform\n%"), -1); #endif /* ACE_HAS_THREADS */ + return 0; } int |