summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-01-20 03:23:42 +0000
committerguenther <guenther@openbsd.org>2014-01-20 03:23:42 +0000
commit4ab8ed70b64e5f2a198bef629e07dfca26a1d380 (patch)
tree09a03a95df4f2d066b46619e70007d8a69ab7cc5 /sys/kern/kern_exit.c
parentdocument !received-on, ok dlg benno (diff)
downloadwireguard-openbsd-4ab8ed70b64e5f2a198bef629e07dfca26a1d380.tar.xz
wireguard-openbsd-4ab8ed70b64e5f2a198bef629e07dfca26a1d380.zip
Move p_textvp from struct proc to struct process so that the exit code
can be further simplified. ok kettenis@
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index fda5e769877..40366f27390 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.129 2013/10/25 04:42:48 guenther Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.130 2014/01/20 03:23:42 guenther Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -616,15 +616,15 @@ proc_zap(struct proc *p)
* Decrement the count of procs running with this uid.
*/
(void)chgproccnt(p->p_cred->p_ruid, -1);
- }
- /*
- * Release reference to text vnode
- */
- otvp = p->p_textvp;
- p->p_textvp = NULL;
- if (otvp)
- vrele(otvp);
+ /*
+ * Release reference to text vnode
+ */
+ otvp = pr->ps_textvp;
+ pr->ps_textvp = NULL;
+ if (otvp)
+ vrele(otvp);
+ }
/*
* Remove us from our process list, possibly killing the process