core: Open the private bus connection and acquire name

This commit is contained in:
Marcel Holtmann 2014-05-20 23:07:49 -07:00
parent f3b9d44be7
commit f299d96e77
1 changed files with 6 additions and 1 deletions

View File

@ -72,13 +72,18 @@ int main(int argc, char *argv[])
l_debug("Bus location: %s", bus_name);
if (!kdbus_open_bus(bus_name, "net.connman.iwd", "iwd")) {
exit_status = EXIT_FAILURE;
goto destroy;
}
l_main_run();
exit_status = EXIT_SUCCESS;
destroy:
l_free(bus_name);
destroy:
kdbus_destroy_bus();
done: