From e5e64a6592da0600a2758405d3251768f9ec7f17 Mon Sep 17 00:00:00 2001 From: YoungHun Kim Date: Thu, 28 Nov 2019 08:12:31 +0900 Subject: [PATCH] Print the process information in dispatcher deadlock Change-Id: Id3cc060b5e74b4cc8dcdb8cd19fcac2630c61750 --- packaging/mused.spec | 2 +- server/src/muse_server_module.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/mused.spec b/packaging/mused.spec index 6b5b9d6..81bdd4c 100644 --- a/packaging/mused.spec +++ b/packaging/mused.spec @@ -1,6 +1,6 @@ Name: mused Summary: A multimedia daemon -Version: 0.3.94 +Version: 0.3.95 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/server/src/muse_server_module.c b/server/src/muse_server_module.c index 4cad549..bfb7d18 100644 --- a/server/src/muse_server_module.c +++ b/server/src/muse_server_module.c @@ -36,6 +36,8 @@ static gboolean _ms_module_dispatch_timeout_callback(gpointer data) char err_msg[MUSE_MSG_LEN_MAX]; int idx, api, timeout; + muse_return_val_if_fail(ms_get_instance(), FALSE); + LOGE("Restart muse server"); if (m) { @@ -46,6 +48,8 @@ static gboolean _ms_module_dispatch_timeout_callback(gpointer data) ms_config_get_host_name(idx), m->pid, api, timeout); LOGE("%s", err_msg); + + ms_log_process_info(ms_get_instance()->pid); if (ms_is_log_enabled()) ms_log_write(err_msg); } else { -- 2.7.4