diff options
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r-- | hcid/dbus-service.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 20fe56f8..67e79e08 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -146,6 +146,7 @@ mem_fail: static void service_agent_exit(const char *name, void *data) { DBusConnection *conn = data; + DBusMessage *message; struct slist *l = services; struct service_agent *agent; const char *path; @@ -160,6 +161,12 @@ static void service_agent_exit(const char *name, void *data) service_agent_free(agent); dbus_connection_unregister_object_path (conn, path); + + message = dbus_message_new_signal(BASE_PATH, MANAGER_INTERFACE, + "ServiceUnregistered"); + dbus_message_append_args(message, DBUS_TYPE_STRING, &path, + DBUS_TYPE_INVALID); + send_message_and_unref(conn, message); } slist_foreach(services, (slist_func_t) free, NULL); |