summaryrefslogtreecommitdiff
path: root/sys/fs/procfs/procfs_ctl.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-04-22 20:00:26 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-04-22 20:00:26 +0000
commit664f718ba1d4f11463ef6ee07ec717977c209510 (patch)
treee7253a8991f553e9eb629a4f9920de499543b07d /sys/fs/procfs/procfs_ctl.c
parentc0bb08c5edc2f2131ecd6b141e204c42be368cce (diff)
Notes
Diffstat (limited to 'sys/fs/procfs/procfs_ctl.c')
-rw-r--r--sys/fs/procfs/procfs_ctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c
index ff4fb0adc1d3..ecc832138aaa 100644
--- a/sys/fs/procfs/procfs_ctl.c
+++ b/sys/fs/procfs/procfs_ctl.c
@@ -144,9 +144,7 @@ procfs_control(struct thread *td, struct proc *p, int op)
* Stop the target.
*/
p->p_flag |= P_TRACED;
- mtx_lock_spin(&sched_lock);
faultin(p);
- mtx_unlock_spin(&sched_lock);
p->p_xstat = 0; /* XXX ? */
if (p->p_pptr != td->td_proc) {
p->p_oppid = p->p_pptr->p_pid;