summaryrefslogtreecommitdiff
path: root/server/miav_daemon.cc
diff options
context:
space:
mode:
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