ltp times03
This commit is contained in:
@@ -608,33 +608,27 @@ sendsig(int sig, siginfo_t *siginfo, void *context)
|
|||||||
siginfo->si_signo == SIGINT)
|
siginfo->si_signo == SIGINT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(tid == master_tid){
|
for(i = 0; i < ncpu; i++){
|
||||||
cpu = 0;
|
if(siginfo->si_pid == pid &&
|
||||||
remote_tid = -1;
|
thread_data[i].tid == tid){
|
||||||
|
if(thread_data[i].terminate)
|
||||||
|
return;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if(siginfo->si_pid != pid &&
|
||||||
|
thread_data[i].remote_tid == tid){
|
||||||
|
if(thread_data[i].terminate)
|
||||||
|
return;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(i != ncpu){
|
||||||
|
remote_tid = thread_data[i].remote_tid;
|
||||||
|
cpu = thread_data[i].cpu;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
for(i = 1; i < ncpu; i++){
|
cpu = 0;
|
||||||
if(siginfo->si_pid == pid &&
|
remote_tid = -1;
|
||||||
thread_data[i].tid == tid){
|
|
||||||
if(thread_data[i].terminate)
|
|
||||||
return;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if(siginfo->si_pid != pid &&
|
|
||||||
thread_data[i].remote_tid == tid){
|
|
||||||
if(thread_data[i].terminate)
|
|
||||||
return;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(i != ncpu){
|
|
||||||
remote_tid = thread_data[i].remote_tid;
|
|
||||||
cpu = thread_data[i].cpu;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
cpu = 0;
|
|
||||||
remote_tid = -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sigdesc.cpu = cpu;
|
sigdesc.cpu = cpu;
|
||||||
|
|||||||
Reference in New Issue
Block a user