summaryrefslogtreecommitdiff
path: root/netsvcs/servers/main.cpp
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-17 07:45:10 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-17 07:45:10 +0000
commit8112ac7af964511086e9df0db63c7172d2a2defe (patch)
tree75cc255363d7f3be85acff048b23ce8868d73fbc /netsvcs/servers/main.cpp
parent3d18bea9c199a60f080e932288579eed65c2721b (diff)
downloadATCD-8112ac7af964511086e9df0db63c7172d2a2defe.tar.gz
Removed daemon in main. Use the singleton Service configurator instead.
Diffstat (limited to 'netsvcs/servers/main.cpp')
-rw-r--r--netsvcs/servers/main.cpp4
1 files changed, 1 insertions, 3 deletions
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);