From c9555a90f229c12a7c34675d9367143813cab0bf Mon Sep 17 00:00:00 2001 From: Constantine Sapuntzakis Date: Tue, 2 Jun 1998 14:50:48 +0000 Subject: Integrated fix from NetBSD kern/5357. --- sys/kern/kern_ktrace.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys') 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; } -- cgit v1.2.3