From 61d5ab3abf896151690f4270804aad7f8ead1911 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 10 Jun 1996 07:35:41 +0000 Subject: tty_attach() --- sys/arch/i386/isa/pccons.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/arch/i386/isa/pccons.c') diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c index e851e7a6dfc..ce662d0d87d 100644 --- a/sys/arch/i386/isa/pccons.c +++ b/sys/arch/i386/isa/pccons.c @@ -1,5 +1,5 @@ -/* $OpenBSD: pccons.c,v 1.15 1996/05/25 22:17:51 deraadt Exp $ */ -/* $NetBSD: pccons.c,v 1.99 1996/05/12 23:12:33 mycroft Exp $ */ +/* $OpenBSD: pccons.c,v 1.16 1996/06/10 07:35:35 deraadt Exp $ */ +/* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */ /*- * Copyright (c) 1993, 1994, 1995 Charles Hannum. All rights reserved. @@ -512,9 +512,10 @@ pcopen(dev, flag, mode, p) if (sc == 0) return ENXIO; - if (!sc->sc_tty) + if (!sc->sc_tty) { tp = sc->sc_tty = ttymalloc(); - else + tty_attach(tp); + } else tp = sc->sc_tty; tp->t_oproc = pcstart; -- cgit v1.2.3