diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-14 18:50:53 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-14 18:50:53 +0000 |
commit | 14fd1e7eddebed74c04c94f0e583e6bc63fa9bbf (patch) | |
tree | 880aaa31f2795aa4f716453c2ef495e0f080a70e /ace/Service_Main.cpp | |
parent | 308424533b37cc4dc3b7fb7b9b006d206001fe08 (diff) | |
download | ATCD-0_8_3.tar.gz |
This commit was manufactured by cvs2svn to create tag 'v0_8_3'.v0_8_3
Diffstat (limited to 'ace/Service_Main.cpp')
-rw-r--r-- | ace/Service_Main.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ace/Service_Main.cpp b/ace/Service_Main.cpp deleted file mode 100644 index 14e8fdbcd0b..00000000000 --- a/ace/Service_Main.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// Service_Main.cpp -// $Id$ - -// This is an example of a canonical Service Configurator daemon's -// main() function. Note how this driver file is completely generic -// and may be used to configure almost any type of network daemon. - -#define ACE_BUILD_DLL -#include "ace/Service_Config.h" - -int -sc_main (int argc, char *argv[]) -{ - ACE_TRACE ("sc_main"); - ACE_Service_Config daemon; - - if (daemon.open (argc, argv) == -1) - ACE_ERROR ((LM_ERROR, "%p\n%a", "open", 1)); - - // Create an adapter to end the event loop. - ACE_Sig_Adapter sa ((ACE_Sig_Handler_Ex) ACE_Service_Config::end_reactor_event_loop); - - // Register a signal handler. - ACE_Service_Config::reactor ()->register_handler (SIGINT, &sa); - - // Run forever, performing the configured services until we are shut - // down by a SIGINT/SIGQUIT signal. - - daemon.run_reactor_event_loop (); - - return 0; -} |