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_fork.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_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 138caa0..8c5ccbe 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -538,7 +538,7 @@ again: FILEDESC_UNLOCK(p1->p_fd); } else fd = fdshare(p1); - PGRPSESS_XLOCK(); + sx_xlock(&proctree_lock); PGRP_LOCK(p1->p_pgrp); PROC_LOCK(p2); p2->p_fd = fd; @@ -573,7 +573,7 @@ again: PROC_UNLOCK(p1); PROC_UNLOCK(p2); PGRP_UNLOCK(p1->p_pgrp); - PGRPSESS_XUNLOCK(); + sx_xunlock(&proctree_lock); /* * Attach the new process to its parent. |