diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-11-14 23:40:56 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1997-11-14 23:40:56 +0000 |
commit | d098e9c0ee094138f6389c98e1e5cce0d3710acd (patch) | |
tree | 2c3eb8c890cb5e5fec004e9db3a1585dd71be2b1 /sys/kern/kern_ktrace.c | |
parent | 19520f2d6b000945e7f1eebaaf2c459f0794d36c (diff) |
Fixed up a VOP_UNLOCK call so that it uses the correction proc *
Diffstat (limited to 'sys/kern/kern_ktrace.c')
-rw-r--r-- | sys/kern/kern_ktrace.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index a316905cf96..0f11c7770a3 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_ktrace.c,v 1.7 1997/11/11 13:50:13 niklas Exp $ */ +/* $OpenBSD: kern_ktrace.c,v 1.8 1997/11/14 23:40:55 csapuntz Exp $ */ /* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */ /* @@ -272,7 +272,7 @@ sys_ktrace(curp, v, retval) syscallarg(int) pid; } */ *uap = v; register struct vnode *vp = NULL; - register struct proc *p = curproc; /* XXX */ + struct proc *p = NULL; struct pgrp *pg; int facs = SCARG(uap, facs) & ~((unsigned) KTRFAC_ROOT); int ops = KTROP(SCARG(uap, ops)); @@ -294,8 +294,7 @@ sys_ktrace(curp, v, retval) } vp = nd.ni_vp; - /* FIXME: Should be curp?? */ - VOP_UNLOCK(vp, 0, p); + VOP_UNLOCK(vp, 0, curp); if (vp->v_type != VREG) { (void) vn_close(vp, FREAD|FWRITE, curp->p_ucred, curp); curp->p_traceflag &= ~KTRFAC_ACTIVE; |