summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-03-28 22:26:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-03-28 22:26:11 +0000
commitf10287b92dd0d12c048356391b996ce267de96bb (patch)
treea0409afe63b1d221add03ad1e4013518f65bc6d6 /sys
parent5de57f8022aab8888c984a51f12ece6ee30e3693 (diff)
guenther notes that s_pid must also move to match
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/wscons/wsdisplay_compat_usl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsdisplay_compat_usl.c b/sys/dev/wscons/wsdisplay_compat_usl.c
index 41fab746a24..571a34de9e0 100644
--- a/sys/dev/wscons/wsdisplay_compat_usl.c
+++ b/sys/dev/wscons/wsdisplay_compat_usl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay_compat_usl.c,v 1.23 2012/03/28 20:18:32 deraadt Exp $ */
+/* $OpenBSD: wsdisplay_compat_usl.c,v 1.24 2012/03/28 22:26:10 deraadt Exp $ */
/* $NetBSD: wsdisplay_compat_usl.c,v 1.12 2000/03/23 07:01:47 thorpej Exp $ */
/*
@@ -105,8 +105,8 @@ usl_sync_init(struct wsscreen *scr, struct usl_syncdata **sdp, struct proc *p,
if (!sd)
return (ENOMEM);
sd->s_scr = scr;
- sd->s_proc = p;
- sd->s_pid = p->p_p->ps_pid;
+ sd->s_proc = p->p_p->ps_mainproc;
+ sd->s_pid = sd->s_proc->p_pid;
sd->s_flags = 0;
sd->s_acqsig = acqsig;
sd->s_relsig = relsig;