summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2021-11-12 15:15:06 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2021-11-12 15:15:06 +0900
commitf495d2ed3cb26cba1d2619e3a03a7affa955a7af (patch)
tree3fc0be474915b5b2d863c2a3b7ef5145b2a46caa
parent89b6f55d269a3ed507ff6b77cefeabd95760c00a (diff)
downloadconnman-submit/tizen/20211117.050637.tar.gz
connman-submit/tizen/20211117.050637.tar.bz2
connman-submit/tizen/20211117.050637.zip
Change-Id: I5fe36fdce42ffca6f3f6587923b42d4b5fec61d4 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xsrc/main.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/main.c b/src/main.c
index 2dae72a2..278b5021 100755
--- a/src/main.c
+++ b/src/main.c
@@ -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