From 8112ac7af964511086e9df0db63c7172d2a2defe Mon Sep 17 00:00:00 2001 From: nw1 Date: Mon, 17 Nov 1997 07:45:10 +0000 Subject: Removed daemon in main. Use the singleton Service configurator instead. --- netsvcs/servers/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'netsvcs/servers') diff --git a/netsvcs/servers/main.cpp b/netsvcs/servers/main.cpp index d494d1b1306..7fc0561a23e 100644 --- a/netsvcs/servers/main.cpp +++ b/netsvcs/servers/main.cpp @@ -12,8 +12,6 @@ int main (int argc, char *argv[]) { - ACE_Service_Config daemon; - // Create an adapter to end the event loop. ACE_Sig_Adapter sa ((ACE_Sig_Handler_Ex) ACE_Reactor::end_event_loop); @@ -32,7 +30,7 @@ main (int argc, char *argv[]) #endif /* ACE_WIN32 */ // Try to link in the svc.conf entries dynamically. - if (daemon.open (argc, argv) == -1) + if (ACE_Service_Config::open (argc, argv) == -1) { if (errno != ENOENT) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), 1); -- cgit v1.2.1