mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113517
|
@ -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…
Reference in a new issue