diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-10-06 15:12:49 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-10-06 15:12:49 +0000 |
commit | 95389a9fa3f688454026d046f31cd15615e7de8d (patch) | |
tree | f3722a3e08b135af4c8250bd03f1acd185def2ee /sys/kern/tty.c | |
parent | 486c8e78cbcef0d475b10f58a45c8977765ead46 (diff) |
VFS Lite2 Changes
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 7548fd6befc..9a593842688 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.27 1997/03/26 18:03:57 deraadt Exp $ */ +/* $OpenBSD: tty.c,v 1.28 1997/10/06 15:12:31 csapuntz Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -812,9 +812,9 @@ ttioctl(tp, cmd, data, flag, p) error = namei(&nid); if (error) return (error); - VOP_LOCK(nid.ni_vp); + vn_lock(nid.ni_vp, LK_EXCLUSIVE | LK_RETRY, p); error = VOP_ACCESS(nid.ni_vp, VREAD, p->p_ucred, p); - VOP_UNLOCK(nid.ni_vp); + VOP_UNLOCK(nid.ni_vp, 0, p); vrele(nid.ni_vp); if (error) return (error); |