diff options
author | 2010-07-26 01:56:27 +0000 | |
---|---|---|
committer | 2010-07-26 01:56:27 +0000 | |
commit | 207e4b38a785bf665de26471f4fc5fde67fa99f0 (patch) | |
tree | 5b61a93df6c22438e6a0955afca220cb2f2207a0 /sys/kern/spec_vnops.c | |
parent | Add missing braces so a loop will function as intended. (diff) | |
download | wireguard-openbsd-207e4b38a785bf665de26471f4fc5fde67fa99f0.tar.xz wireguard-openbsd-207e4b38a785bf665de26471f4fc5fde67fa99f0.zip |
Correct the links between threads, processes, pgrps, and sessions,
so that the process-level stuff is to/from struct process and not
struct proc. This fixes a bunch of problem cases in rthreads.
Based on earlier work by blambert and myself, but mostly written
at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
Diffstat (limited to 'sys/kern/spec_vnops.c')
-rw-r--r-- | sys/kern/spec_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index c1816c58186..11fde4c819b 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.57 2010/05/18 04:41:14 dlg Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.58 2010/07/26 01:56:27 guenther Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -500,9 +500,9 @@ spec_close(void *v) * plus the session), release the reference from the session. */ if (vcount(vp) == 2 && ap->a_p && - vp == ap->a_p->p_session->s_ttyvp) { + vp == ap->a_p->p_p->ps_session->s_ttyvp) { vrele(vp); - ap->a_p->p_session->s_ttyvp = NULL; + ap->a_p->p_p->ps_session->s_ttyvp = NULL; } if (cdevsw[major(dev)].d_flags & D_CLONE) return (spec_close_clone(ap)); |