summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-04-16 17:11:34 +0000
committerjhb <jhb@FreeBSD.org>2002-04-16 17:11:34 +0000
commitdba04cd736d55f53d6db22e89a37b13ba56eb759 (patch)
tree0dbfaf0504ea8a7e7591f231c8e177a948a68da3 /sys/kern/kern_descrip.c
parent6cbba0bb0370167bd9f9a0d6ef843373f6b8f1c0 (diff)
downloadFreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.zip
FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.tar.gz
Lock proctree_lock instead of pgrpsess_lock.
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 9f017301..136bd61 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -641,7 +641,7 @@ fsetown(pgid, sigiop)
sigio->sio_ucred = crhold(curthread->td_ucred);
sigio->sio_myref = sigiop;
- PGRPSESS_SLOCK();
+ sx_slock(&proctree_lock);
if (pgid > 0) {
proc = pfind(pgid);
if (proc == NULL) {
@@ -699,14 +699,14 @@ fsetown(pgid, sigiop)
sigio->sio_pgrp = pgrp;
PGRP_UNLOCK(pgrp);
}
- PGRPSESS_SUNLOCK();
+ sx_sunlock(&proctree_lock);
s = splhigh();
*sigiop = sigio;
splx(s);
return (0);
fail:
- PGRPSESS_SUNLOCK();
+ sx_sunlock(&proctree_lock);
crfree(sigio->sio_ucred);
FREE(sigio, M_SIGIO);
return (ret);
OpenPOWER on IntegriCloud