From 8cad6d0e9ce54b3bdba98a5211b78898ba1206b0 Mon Sep 17 00:00:00 2001 From: Viacheslav Rybalov Date: Mon, 25 Sep 2023 10:53:05 +0000 Subject: [PATCH] SIG handling minor fix SIG handling minor fix on Linux --- .../ocl_igc_interface/impl/igc_ocl_translation_ctx_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IGC/AdaptorOCL/ocl_igc_interface/impl/igc_ocl_translation_ctx_impl.h b/IGC/AdaptorOCL/ocl_igc_interface/impl/igc_ocl_translation_ctx_impl.h index 1a2497ebac6b..6b0cfa24de7d 100644 --- a/IGC/AdaptorOCL/ocl_igc_interface/impl/igc_ocl_translation_ctx_impl.h +++ b/IGC/AdaptorOCL/ocl_igc_interface/impl/igc_ocl_translation_ctx_impl.h @@ -519,6 +519,7 @@ if (sig == 0) { \ #define EX_GUARD_END \ } else { \ + TC::UnlockMutex(); \ res = CIF_GET_PIMPL()->GetErrorOutput(outVersion, sig); \ } \ REMOVE_SIG_HANDLER(SIGABRT) \ @@ -527,7 +528,6 @@ REMOVE_SIG_HANDLER(SIGILL) \ REMOVE_SIG_HANDLER(SIGINT) \ REMOVE_SIG_HANDLER(SIGSEGV) \ REMOVE_SIG_HANDLER(SIGTERM) \ -TC::UnlockMutex(); #endif #else