summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1998-06-02 14:50:48 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1998-06-02 14:50:48 +0000
commitc9555a90f229c12a7c34675d9367143813cab0bf (patch)
treecf45cb3a7aa65208e7722ead8066f82b4f910d63 /sys
parent6a7f51dbf784dde6a2587be15701b0ad5b369af6 (diff)
Integrated fix from NetBSD kern/5357.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_ktrace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
index 56b6f3f6205..44989e40f10 100644
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_ktrace.c,v 1.9 1998/02/03 19:06:23 deraadt Exp $ */
+/* $OpenBSD: kern_ktrace.c,v 1.10 1998/06/02 14:50:47 csapuntz Exp $ */
/* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */
/*
@@ -310,8 +310,7 @@ sys_ktrace(curp, v, retval)
if (ktrcanset(curp, p)) {
p->p_tracep = NULL;
p->p_traceflag = 0;
- (void) vn_close(vp, FREAD|FWRITE,
- p->p_ucred, p);
+ vrele(vp);
} else
error = EPERM;
}