fix to panic when thread end and signal overlap.

This commit is contained in:
Tomoki Shirasawa
2017-03-28 11:31:27 +09:00
parent ef910fdf0e
commit f2ab0193e5

View File

@@ -1179,7 +1179,8 @@ done:
if(pid != -1 && tthread->proc->pid != pid){
continue;
}
if(tthread->tid == tid){
if (tthread->tid == tid &&
tthread->status != PS_EXITED) {
found = 1;
break;
}