get hostnamed to show up on session bus, incomplete
[systembsd.git] / src / main.c
index 2ff00fddfad06945dcf15802bfa0ecf0ddc8b4a8..8ba890714434b4a2285953854ff04766f222aa10 100644 (file)
@@ -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;
 }