diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-16 17:11:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-16 17:11:34 +0000 |
commit | dba04cd736d55f53d6db22e89a37b13ba56eb759 (patch) | |
tree | 0dbfaf0504ea8a7e7591f231c8e177a948a68da3 /sys/kern/kern_ktrace.c | |
parent | 6cbba0bb0370167bd9f9a0d6ef843373f6b8f1c0 (diff) | |
download | FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.zip FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.tar.gz |
Lock proctree_lock instead of pgrpsess_lock.
Diffstat (limited to 'sys/kern/kern_ktrace.c')
-rw-r--r-- | sys/kern/kern_ktrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 20c31c4..5f77011 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -357,16 +357,16 @@ ktrace(td, uap) /* * by process group */ - PGRPSESS_SLOCK(); + sx_slock(&proctree_lock); pg = pgfind(-uap->pid); if (pg == NULL) { - PGRPSESS_SUNLOCK(); + sx_sunlock(&proctree_lock); error = ESRCH; goto done; } /* * ktrops() may call vrele(). Lock pg_members - * by the pgrpsess_lock rather than pg_mtx. + * by the proctree_lock rather than pg_mtx. */ PGRP_UNLOCK(pg); LIST_FOREACH(p, &pg->pg_members, p_pglist) @@ -374,7 +374,7 @@ ktrace(td, uap) ret |= ktrsetchildren(td, p, ops, facs, vp); else ret |= ktrops(td, p, ops, facs, vp); - PGRPSESS_SUNLOCK(); + sx_sunlock(&proctree_lock); } else { /* * by pid |