diff options
Diffstat (limited to 'sys/dev/isa/com.c')
-rw-r--r-- | sys/dev/isa/com.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/isa/com.c b/sys/dev/isa/com.c index e5da21469df..eb37eb9cef6 100644 --- a/sys/dev/isa/com.c +++ b/sys/dev/isa/com.c @@ -1,5 +1,5 @@ -/* $OpenBSD: com.c,v 1.15 1996/05/26 00:27:14 deraadt Exp $ */ -/* $NetBSD: com.c,v 1.82 1996/05/12 23:52:00 mycroft Exp $ */ +/* $OpenBSD: com.c,v 1.16 1996/06/10 07:32:39 deraadt Exp $ */ +/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /*- * Copyright (c) 1993, 1994, 1995, 1996 @@ -757,9 +757,10 @@ comopen(dev, flag, mode, p) if (!sc || ISSET(sc->sc_hwflags, COM_HW_ABSENT|COM_HW_ABSENT_PENDING)) 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 = comstart; |