summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2005-04-29 22:38:02 +0000
committercperciva <cperciva@FreeBSD.org>2005-04-29 22:38:02 +0000
commitf72e92f1b17fcf238bbfedf24af2d5afb0f24928 (patch)
tree0668697cde844f89a029ab87595674a00b8ad6ab
parent691e072f685238f1331b5b1d3539e4310069599c (diff)
downloadFreeBSD-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.h1
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
OpenPOWER on IntegriCloud