diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 07:35:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 07:35:41 +0000 |
commit | 61d5ab3abf896151690f4270804aad7f8ead1911 (patch) | |
tree | aed481f4e7ea9d3915da8d499f63b5b3db835f8c /sys/arch/i386/isa/pccons.c | |
parent | 76fc5d8d8e79b754fba81a84bab2dffafe0910c1 (diff) |
tty_attach()
Diffstat (limited to 'sys/arch/i386/isa/pccons.c')
-rw-r--r-- | sys/arch/i386/isa/pccons.c | 9 |
1 files changed, 5 insertions, 4 deletions
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; |