Sync up with changes to ptrace() and use P_SHOULDSTOP instead of
a duplicate P_TRACED check. Submitted by: marcel
This commit is contained in:
parent
7456d3c673
commit
f265002902
@ -388,7 +388,7 @@ linux_ptrace(struct thread *td, struct linux_ptrace_args *uap)
|
||||
}
|
||||
|
||||
/* not currently stopped */
|
||||
if ((p->p_flag & (P_TRACED|P_WAITED)) == 0) {
|
||||
if (!P_SHOULDSTOP(p) || (p->p_flag & P_WAITED) == 0) {
|
||||
error = EBUSY;
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user