Author: markj
Date: Fri Aug 19 01:27:24 2016
New Revision: 304440
URL: https://svnweb.freebsd.org/changeset/base/304440

Log:
  Correct a check for P2_PTRACE_FSTP in ptracestop().
  
  MFC after:    1 day

Modified:
  head/sys/kern/kern_sig.c

Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c    Fri Aug 19 00:50:32 2016        (r304439)
+++ head/sys/kern/kern_sig.c    Fri Aug 19 01:27:24 2016        (r304440)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to