summaryrefslogtreecommitdiff
path: root/server/miav_daemon.cc
diff options
context:
space:
mode:
authordeva <deva>2006-03-07 19:12:18 +0000
committerdeva <deva>2006-03-07 19:12:18 +0000
commit4f84ffc811d93371f395f11a0e0f42000eaa99fc (patch)
treeb562b6c55f2a825dbbc12646df9741b51e1dff79 /server/miav_daemon.cc
parent1390ddfe6afe41dba141f8170f9b277573ebe8cd (diff)
*** empty log message ***
Diffstat (limited to 'server/miav_daemon.cc')
-rw-r--r--server/miav_daemon.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/miav_daemon.cc b/server/miav_daemon.cc
index 500e92a..06c6c3e 100644
--- a/server/miav_daemon.cc
+++ b/server/miav_daemon.cc
@@ -44,11 +44,12 @@ MiavDaemon::~MiavDaemon()
int MiavDaemon::daemon_main()
{
- MiavConfig cfg(ETC"/miav.conf", NULL);
- InfoConsole info(&cfg);
- config = new MiavConfig(ETC"/miav.conf", &info);
+ MiavConfig config(ETC"/miav.conf");
+ MIaV::initConfig(&config);
+
+ InfoConsole info(&config);
- int port = config->readInt("server_port");
+ int port = MIaV::config->readInt("server_port");
pid_t childpid; // variable to store the child's pid
signal(SIGCLD, SIG_IGN); // Ved SIGCHILD til IGNORE maa wait/waitpid ikke kaldes