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
This commit is contained in:
Colin Percival 2005-04-29 22:38:02 +00:00
parent ca4cc47388
commit 9249fcc4b9

View File

@ -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