diff options
Diffstat (limited to 'sys/i386/isa/sio.c')
-rw-r--r-- | sys/i386/isa/sio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c index 9a1a4b5..33c9568 100644 --- a/sys/i386/isa/sio.c +++ b/sys/i386/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.31 1994/03/02 20:28:36 guido Exp $ + * $Id: sio.c,v 1.32 1994/03/08 22:11:10 ache Exp $ */ #include "sio.h" @@ -772,8 +772,9 @@ sioclose(dev, flag, mode, p) com = com_addr(UNIT(dev)); tp = com->tp; (*linesw[tp->t_line].l_close)(tp, flag); + if (linesw[tp->t_line].l_close != ttyclose) + ttyclose(tp); comhardclose(com); - ttyclose(tp); ttyfree(tp); #ifdef broken /* session holds a ref to the tty; can't deallocate */ sio_tty[UNIT(dev)] = (struct tty *)NULL; |