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

@ -4987,7 +4987,7 @@ static int ptrace_attach(int pid)
info.si_signo = SIGSTOP;
info.si_code = SI_USER;
info._sifields._kill.si_pid = proc->pid;
error = do_kill(mythread, pid, -1, SIGSTOP, &info, 1);
error = do_kill(mythread, pid, -1, SIGSTOP, &info, 2);
if (error < 0) {
goto out;
}