diff options
author | cperciva <cperciva@FreeBSD.org> | 2005-04-29 22:38:02 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2005-04-29 22:38:02 +0000 |
commit | f72e92f1b17fcf238bbfedf24af2d5afb0f24928 (patch) | |
tree | 0668697cde844f89a029ab87595674a00b8ad6ab | |
parent | 691e072f685238f1331b5b1d3539e4310069599c (diff) | |
download | FreeBSD-src-f72e92f1b17fcf238bbfedf24af2d5afb0f24928.zip FreeBSD-src-f72e92f1b17fcf238bbfedf24af2d5afb0f24928.tar.gz |
Add PROC_UNLOCK(p) to PTRACESTOP_SC(p, td, flag). This is necessary
due to a change made in revision 1.284 of sys/kern/kern_sig.c in August
2004 which made ptracestop() return with the process still locked.
Submitted by: Mauritz Sundell
MFC After: 3 days
-rw-r--r-- | sys/sys/ptrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h index 5596790..0058683 100644 --- a/sys/sys/ptrace.h +++ b/sys/sys/ptrace.h @@ -100,6 +100,7 @@ struct ptrace_lwpinfo { if ((p)->p_flag & P_TRACED && (p)->p_stops & (flag)) { \ PROC_LOCK(p); \ ptracestop((td), SIGTRAP); \ + PROC_UNLOCK(p); \ } /* * The flags below are used for ptrace(2) tracing and have no relation |