don't send SIGCONT when sending SIGSTOP derived from PTRACE_ATTACH

refs #747
This commit is contained in:
Tomoki Shirasawa
2016-05-19 10:54:12 +09:00
parent 9b35eaca42
commit f06d8041e3
2 changed files with 2 additions and 2 deletions

View File

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