diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-12 01:39:27 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-12 01:39:27 +0000 |
commit | 9605b0842163bb1b7839793f1251406ba1deac23 (patch) | |
tree | 0dbf065c527367572a05337b68878e369098b7c7 /ace/Service_Main.cpp | |
parent | 795c99a9a2eecff871b4cef86a40382d25a3afb5 (diff) | |
download | ATCD-java-1_0_0a.tar.gz |
This commit was manufactured by cvs2svn to create tag 'java-1_0_0a'.java-1_0_0a
Diffstat (limited to 'ace/Service_Main.cpp')
-rw-r--r-- | ace/Service_Main.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/ace/Service_Main.cpp b/ace/Service_Main.cpp deleted file mode 100644 index cf20fe799e8..00000000000 --- a/ace/Service_Main.cpp +++ /dev/null @@ -1,37 +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" - -sig_atomic_t finished = 0; - -static void -handler (int) -{ - ACE_TRACE ("handler"); - finished = 1; -} - -int -sc_main (int argc, char *argv[]) -{ - ACE_TRACE ("sc_main"); - ACE_Service_Config daemon; - - ACE_OS::signal (SIGINT, ACE_SignalHandler (handler)); - - if (daemon.open (argc, argv) == -1) - ACE_ERROR ((LM_ERROR, "%p\n%a", "open", 1)); - - /* Run forever, performing the configured services. */ - - while (!finished) - daemon.run_reactor_event_loop (); - - return 0; -} |