| Index: src/trusted/service_runtime/linux/thread_suspension.c
|
| diff --git a/src/trusted/service_runtime/linux/thread_suspension.c b/src/trusted/service_runtime/linux/thread_suspension.c
|
| index d00c72bfc67f170eb26486ed467076edf7e3a491..1c2d07d2ba9f7bc348f385998135d9d90022a7ff 100644
|
| --- a/src/trusted/service_runtime/linux/thread_suspension.c
|
| +++ b/src/trusted/service_runtime/linux/thread_suspension.c
|
| @@ -251,7 +251,8 @@ void NaClUntrustedThreadSuspend(struct NaClAppThread *natp,
|
| NaClLog(LOG_FATAL, "NaClUntrustedThreadSuspend: malloc() failed\n");
|
| }
|
| }
|
| - if (pthread_kill(natp->thread.tid, NACL_THREAD_SUSPEND_SIGNAL) != 0) {
|
| + CHECK(natp->host_thread_is_defined);
|
| + if (pthread_kill(natp->host_thread.tid, NACL_THREAD_SUSPEND_SIGNAL) != 0) {
|
| NaClLog(LOG_FATAL, "NaClUntrustedThreadSuspend: "
|
| "pthread_kill() call failed\n");
|
| }
|
|
|