diff options
Diffstat (limited to 'sys/dev/wscons/wsdisplay_compat_usl.c')
-rw-r--r-- | sys/dev/wscons/wsdisplay_compat_usl.c | 6 |
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; |