summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2021-10-29 19:16:39 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2021-11-09 14:07:57 +0900
commiteadf8381acd0e364a28b52dfcd6b0c1bbaff4733 (patch)
treef1a5317fa0c8ee0c4d8d5d216bd267e37cfa1bc2
parent5a253ba10bddf14fdc5e598aa8e6621ab21a40f8 (diff)
downloadconnman-eadf8381acd0e364a28b52dfcd6b0c1bbaff4733.tar.gz
connman-eadf8381acd0e364a28b52dfcd6b0c1bbaff4733.tar.bz2
connman-eadf8381acd0e364a28b52dfcd6b0c1bbaff4733.zip
Disabled in container environment
Disable the container's network daemons to avoid conflicts because they use the same network namespace. Change-Id: I0e19fc7df608df39f5936f3082858f6f16415f3d Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xsrc/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index cc104d50..2dae72a2 100755
--- a/src/main.c
+++ b/src/main.c
@@ -48,6 +48,7 @@
#if defined TIZEN_EXT
#define DEFAULT_WIFI_INTERFACE "wlan0"
+#define CONTAINER_FILE "/run/systemd/container"
#endif
#define MAINFILE "main.conf"
@@ -1359,6 +1360,15 @@ 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);