diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-21 19:22:19 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-21 19:22:19 +0000 |
commit | 710f7be8fe7365879df464198bc6e43e1c071a0c (patch) | |
tree | a4e63f3d9f8f0097ff1a44d4668cc04307198ee2 /tests | |
parent | 0871923f533e5f70650d2256971f7816145c3127 (diff) | |
download | ATCD-710f7be8fe7365879df464198bc6e43e1c071a0c.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Process_Strategy_Test.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
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, ACE_Null_Mutex> 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 */ } |