3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

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

View File

@ -72,13 +72,18 @@ int main(int argc, char *argv[])
l_debug("Bus location: %s", bus_name); 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(); l_main_run();
exit_status = EXIT_SUCCESS; exit_status = EXIT_SUCCESS;
destroy:
l_free(bus_name); l_free(bus_name);
destroy:
kdbus_destroy_bus(); kdbus_destroy_bus();
done: done: