From c90346a5d7f6ade759e62128e39c086e4ae45bbd Mon Sep 17 00:00:00 2001 From: Wonnam Jang Date: Fri, 20 Oct 2017 10:57:47 +0900 Subject: [PATCH] Add to set false as exit when dbus disconnects Change-Id: I486bcc261d45967a7d47f026883306516dad2034 Signed-off-by: Wonnam Jang --- client/tts_dbus.c | 2 ++ server/ttsd_dbus.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/client/tts_dbus.c b/client/tts_dbus.c index 44dc152..29248f8 100644 --- a/client/tts_dbus.c +++ b/client/tts_dbus.c @@ -206,6 +206,8 @@ int tts_dbus_open_connection() return TTS_ERROR_OPERATION_FAILED; } + dbus_connection_set_exit_on_disconnect(g_conn_listener, false); + char rule[128] = {0, }; snprintf(rule, 128, "type='signal',interface='%s'", TTS_CLIENT_SERVICE_INTERFACE); diff --git a/server/ttsd_dbus.c b/server/ttsd_dbus.c index 76bc2ea..5746e5d 100644 --- a/server/ttsd_dbus.c +++ b/server/ttsd_dbus.c @@ -342,6 +342,8 @@ int ttsd_dbus_open_connection() return -1; } + dbus_connection_set_exit_on_disconnect(g_conn_sender, false); + /* connect to the bus and check for errors */ g_conn_listener = dbus_bus_get_private(DBUS_BUS_SESSION, &err); if (dbus_error_is_set(&err)) { @@ -357,6 +359,8 @@ int ttsd_dbus_open_connection() return -1; } + dbus_connection_set_exit_on_disconnect(g_conn_listener, false); + __ttsd_dbus_service_free(); if (TTSD_MODE_SCREEN_READER == ttsd_get_mode()) { -- 2.7.4