diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
commit | 40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch) | |
tree | 37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /TAO/orbsvcs/Naming_Service/Naming_Server.cpp | |
parent | c254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff) | |
download | ATCD-typecode-overhaul.tar.gz |
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'TAO/orbsvcs/Naming_Service/Naming_Server.cpp')
-rw-r--r-- | TAO/orbsvcs/Naming_Service/Naming_Server.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Server.cpp b/TAO/orbsvcs/Naming_Service/Naming_Server.cpp index 9dd785b891e..a16d6d434dc 100644 --- a/TAO/orbsvcs/Naming_Service/Naming_Server.cpp +++ b/TAO/orbsvcs/Naming_Service/Naming_Server.cpp @@ -3,34 +3,6 @@ #include "Naming_Service.h" #include "ace/OS_main.h" -#include <orbsvcs/Shutdown_Utilities.h> -#include <tao/debug.h> - -class Naming_Svc_Shutdown : public Shutdown_Functor -{ -public: - Naming_Svc_Shutdown(TAO_Naming_Service& ns); - - void operator() (int which_signal); -private: - TAO_Naming_Service& ns_; -}; - -Naming_Svc_Shutdown::Naming_Svc_Shutdown (TAO_Naming_Service &ns) - : ns_(ns) -{ -} - -void -Naming_Svc_Shutdown::operator() (int which_signal) -{ - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, - "Name Service: shutting down on signal %d\n", - which_signal)); - (void) this->ns_.shutdown (); -} - // Driver function for the TAO Naming Service. int @@ -38,10 +10,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { TAO_Naming_Service naming_service; - // Stuff to insure that we're gracefully shut down... - Naming_Svc_Shutdown killer (naming_service); - Service_Shutdown kill_contractor(killer); - if (naming_service.init (argc, argv) == -1) ACE_ERROR_RETURN ((LM_ERROR, ACE_LIB_TEXT("Failed to start the Naming Service.\n")), @@ -61,7 +29,5 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) ACE_ENDTRY; ACE_CHECK_RETURN (1); - naming_service.fini (); - return 0; } |