From 4db68c34bdf942f8d0da2fc05162e74571e311b2 Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Fri, 14 Jan 2022 14:19:35 +0900 Subject: [PATCH] [Tizen] Add error log for pthread_kill failure --- src/pal/src/exception/signal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pal/src/exception/signal.cpp b/src/pal/src/exception/signal.cpp index 325a150..fa3a47f 100644 --- a/src/pal/src/exception/signal.cpp +++ b/src/pal/src/exception/signal.cpp @@ -691,6 +691,7 @@ PAL_ERROR InjectActivationInternal(CorUnix::CPalThread* pThread) int status = pthread_kill(pThread->GetPThreadSelf(), INJECT_ACTIVATION_SIGNAL); if ((status != 0) && (status != EAGAIN)) { + printf("thread_t : 0x%08lx(%lu), status : %s\n", pThread->GetPThreadSelf(), pThread->GetPThreadSelf(), strerror(status)); // Failure to send the signal is fatal. There are only two cases when sending // the signal can fail. First, if the signal ID is invalid and second, // if the thread doesn't exist anymore. -- 2.7.4