aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 42a4779..c19b489 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,7 +2,11 @@
#include "interfaces/hostnamed/hostnamed.c"
int main() {
- hostnamed_init();
+ GMainLoop *mloop = NULL;
+ mloop = g_main_loop_new(NULL, FALSE);
+ hostnamed_init();
+ g_main_loop_run(mloop);
+
return 0;
}