From 7f649dda556180e101a5e087830247211ba6926e Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 19 Aug 2016 01:27:24 +0000 Subject: [PATCH] Correct a check for P2_PTRACE_FSTP in ptracestop(). MFC after: 1 day --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 4aa064a38387..c183c8ff712a 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -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;