aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2ff00fd..8ba8907 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,13 @@
+#include <gio/gio.h>
#include "modules/hostnamed/hostnamed.c"
int main() {
+ GMainLoop *loop;
+
hostnamed_init();
- for(;;) {}
+
+ loop = g_main_loop_new(NULL, FALSE);
+ g_main_loop_run(loop);
+
return 0;
}