do_kill: wake PS_INTERRUPTIBLE process when send SIGKILL

sched_wakeup_thread: don't change process status if process status is PS_EXITED
This commit is contained in:
Tomoki Shirasawa
2016-07-13 14:06:32 +09:00
parent 01d9d9a5ba
commit f6908f21a8
2 changed files with 8 additions and 3 deletions

View File

@ -1302,7 +1302,7 @@ done:
if (status != PS_RUNNING) {
if(sig == SIGKILL){
/* Wake up the target only when stopped by ptrace-reporting */
sched_wakeup_thread(tthread, PS_TRACED | PS_STOPPED);
sched_wakeup_thread(tthread, PS_TRACED | PS_STOPPED | PS_INTERRUPTIBLE);
}
else if(sig == SIGCONT || ptracecont == 1){
/* Wake up the target only when stopped by SIGSTOP */