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:
John Baldwin 2003-04-15 16:29:39 +00:00
parent 7456d3c673
commit f265002902
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113517

View file

@ -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;
}