aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ptrace.h
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2005-04-29 22:38:02 +0000
committerColin Percival <cperciva@FreeBSD.org>2005-04-29 22:38:02 +0000
commit9249fcc4b9d5fd2a02925eb78169911cae1bf84b (patch)
tree0668697cde844f89a029ab87595674a00b8ad6ab /sys/sys/ptrace.h
parentca4cc47388b466d3b44526c94d8d9c30fb3d2c99 (diff)
downloadsrc-9249fcc4b9d5fd2a02925eb78169911cae1bf84b.tar.gz
src-9249fcc4b9d5fd2a02925eb78169911cae1bf84b.zip
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
Notes
Notes: svn path=/head/; revision=145691
Diffstat (limited to 'sys/sys/ptrace.h')
-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 5596790e768c..0058683da9b0 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