summaryrefslogtreecommitdiff
path: root/examples/Service_Configurator/IPC-tests/server/server_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Service_Configurator/IPC-tests/server/server_test.cpp')
-rw-r--r--examples/Service_Configurator/IPC-tests/server/server_test.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/examples/Service_Configurator/IPC-tests/server/server_test.cpp b/examples/Service_Configurator/IPC-tests/server/server_test.cpp
deleted file mode 100644
index a1dd1e36ce4..00000000000
--- a/examples/Service_Configurator/IPC-tests/server/server_test.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// $Id$
-
-// The main test driver for the dynamically configured server.
-
-#include "ace/Service_Config.h"
-
-int
-main (int argc, char *argv[])
-{
- if (ACE_Service_Config::open (argc, argv) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "ACE_Service_Config::open"),
- -1);
-
- // Create an adapter to end the event loop.
- ACE_Sig_Adapter sa ((ACE_Sig_Handler_Ex) ACE_Reactor::end_event_loop);
-
- ACE_Sig_Set sig_set;
- sig_set.sig_add (SIGINT);
- sig_set.sig_add (SIGQUIT);
-
- // Register ourselves to receive signals so we can shut down
- // gracefully.
- if (ACE_Reactor::instance ()->register_handler (sig_set, &sa) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n"),
- -1);
-
- // Run forever, performing the configured services until we are shut
- // down by a SIGINT/SIGQUIT signal.
-
- ACE_Reactor::run_event_loop ();
-
- return 0;
-}