A signal may not sometimes arrive to a thread.

This commit is contained in:
Tomoki Shirasawa
2016-10-04 14:35:25 +09:00
parent e03f377326
commit 8aa589a40c

View File

@ -1695,7 +1695,7 @@ kill_thread(unsigned long tid)
{
int i;
for (i = 0; i < n_threads; ++i) {
for (i = 0; i <= n_threads; ++i) {
if(thread_data[i].remote_tid == tid){
pthread_kill(thread_data[i].thread_id, LOCALSIG);
break;