1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Correct a check for P2_PTRACE_FSTP in ptracestop().

MFC after:	1 day
This commit is contained in:
Mark Johnston 2016-08-19 01:27:24 +00:00
parent b06ccf7919
commit 7f649dda55
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304440

View File

@ -2537,7 +2537,7 @@ ptracestop(struct thread *td, int sig)
* a chance to report itself upon the next iteration.
*/
if ((td->td_dbgflags & TDB_FSTP) != 0 ||
((p->p_flag & P2_PTRACE_FSTP) == 0 &&
((p->p_flag2 & P2_PTRACE_FSTP) == 0 &&
p->p_xthread == NULL)) {
p->p_xsig = sig;
p->p_xthread = td;