From 710f7be8fe7365879df464198bc6e43e1c071a0c Mon Sep 17 00:00:00 2001 From: schmidt Date: Fri, 21 Nov 1997 19:22:19 +0000 Subject: *** empty log message *** --- tests/Process_Strategy_Test.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/Process_Strategy_Test.cpp b/tests/Process_Strategy_Test.cpp index 7aefac41425..0391036e85c 100644 --- a/tests/Process_Strategy_Test.cpp +++ b/tests/Process_Strategy_Test.cpp @@ -60,13 +60,15 @@ typedef ACE_Singleton OPTIONS; // counter for connections static int connections = 0; -// Use this to show down the process gracefully. Note that this -// doesn't work for the PROCESS case. +// Use this to show down the process gracefully. static int done (void) { - return connections == ACE_MAX_ITERATIONS + 1; + if (OPTIONS::instance ()->concurrency_type () == Options::PROCESS) + return connections == 1; + else + return connections == ACE_MAX_ITERATIONS + 1; } ACE_File_Lock & @@ -529,18 +531,18 @@ main (int argc, char *argv[]) exit (-1); /* NOTREACHED */ case 0: - signal (SIGCHLD, SIG_IGN); - server (0); - - break; - /* NOTREACHED */ - default: client (&server_addr); // Shutdown the server process. if (ACE_OS::kill (pid, SIGINT) == 0) ACE_OS::wait (); + /* NOTREACHED */ + default: + signal (SIGCHLD, SIG_IGN); + server (0); + + break; break; /* NOTREACHED */ } -- cgit v1.2.1