diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2021-11-12 15:15:06 +0900 |
---|---|---|
committer | Jaehyun Kim <jeik01.kim@samsung.com> | 2021-11-12 15:15:06 +0900 |
commit | f495d2ed3cb26cba1d2619e3a03a7affa955a7af (patch) | |
tree | 3fc0be474915b5b2d863c2a3b7ef5145b2a46caa /src/main.c | |
parent | 89b6f55d269a3ed507ff6b77cefeabd95760c00a (diff) | |
download | connman-f495d2ed3cb26cba1d2619e3a03a7affa955a7af.tar.gz connman-f495d2ed3cb26cba1d2619e3a03a7affa955a7af.tar.bz2 connman-f495d2ed3cb26cba1d2619e3a03a7affa955a7af.zip |
Register with system bus in container environmentsubmit/tizen/20211126.045758submit/tizen/20211125.124313submit/tizen/20211117.050637accepted/tizen/unified/20211129.120836
Change-Id: I5fe36fdce42ffca6f3f6587923b42d4b5fec61d4
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'src/main.c')
-rwxr-xr-x | src/main.c | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -1360,15 +1360,6 @@ int main(int argc, char *argv[]) signal = setup_signalfd(); -#if defined TIZEN_EXT - if (access(CONTAINER_FILE, F_OK) == 0) { - g_main_loop_run(main_loop); - - g_source_remove(signal); - return 0; - } -#endif - dbus_error_init(&err); conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM, CONNMAN_SERVICE, &err); @@ -1388,6 +1379,21 @@ int main(int argc, char *argv[]) __connman_dbus_init(conn); +#if defined TIZEN_EXT + if (access(CONTAINER_FILE, F_OK) == 0) { + g_main_loop_run(main_loop); + + g_source_remove(signal); + dbus_connection_unref(conn); + g_main_loop_unref(main_loop); + + __connman_dbus_cleanup(); + __connman_log_cleanup(option_backtrace); + + return 0; + } +#endif + if (!option_config) config_init(CONFIGMAINFILE); else |