lib/app: Change signal handler to use spdk_thread_send_critical_msg
Fixes deadlock when closing application with SIGTERM during call of spdk_thread_send_msg. Fixes #1105 Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com> Change-Id: If191550f9681a30674fc9c0704289fcdb70b33cb Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478291 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
907efcd7da
commit
db126b3ee1
@ -235,7 +235,7 @@ app_start_shutdown(void *ctx)
|
||||
void
|
||||
spdk_app_start_shutdown(void)
|
||||
{
|
||||
spdk_thread_send_msg(g_app_thread, app_start_shutdown, NULL);
|
||||
spdk_thread_send_critical_msg(g_app_thread, app_start_shutdown);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user