diff options
author | tanimura <tanimura@FreeBSD.org> | 2002-03-11 07:53:13 +0000 |
---|---|---|
committer | tanimura <tanimura@FreeBSD.org> | 2002-03-11 07:53:13 +0000 |
commit | 22c75bf1c95925ca749760aa92580541ac2e6196 (patch) | |
tree | 67cbceb5f52dfde68f8a75843701d4ce255820e6 /sys/kern/vfs_vnops.c | |
parent | b9e49bfcc91fc2e10b17f9bec70d4d4cfb27ad51 (diff) | |
download | FreeBSD-src-22c75bf1c95925ca749760aa92580541ac2e6196.zip FreeBSD-src-22c75bf1c95925ca749760aa92580541ac2e6196.tar.gz |
Stop abusing the pgrpsess_lock.
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 6300fe2..461cb1e 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -660,9 +660,9 @@ vn_ioctl(fp, com, data, td) if (error == 0 && com == TIOCSCTTY) { /* Do nothing if reassigning same control tty */ - PGRPSESS_XLOCK(); + PGRPSESS_SLOCK(); if (td->td_proc->p_session->s_ttyvp == vp) { - PGRPSESS_XUNLOCK(); + PGRPSESS_SUNLOCK(); return (0); } @@ -672,7 +672,7 @@ vn_ioctl(fp, com, data, td) td->td_proc->p_session->s_ttyvp = vp; SESS_UNLOCK(td->td_proc->p_session); - PGRPSESS_XUNLOCK(); + PGRPSESS_SUNLOCK(); /* Get rid of reference to old control tty */ if (vpold) |