diff options
author | ache <ache@FreeBSD.org> | 1994-03-10 10:06:27 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-03-10 10:06:27 +0000 |
commit | 950f869b2715ccdd01bd994cb0429a13c041a70c (patch) | |
tree | 19b9f8181c5c8ba759d708b3b9c58a795dda71fd /sys/dev/sio/sio.c | |
parent | 0dbc086d98dea13bc5bff6be7b335b3b4cc441b5 (diff) | |
download | FreeBSD-src-950f869b2715ccdd01bd994cb0429a13c041a70c.zip FreeBSD-src-950f869b2715ccdd01bd994cb0429a13c041a70c.tar.gz |
Don't call ttyclose twice into sioclose and move ttyclose
before comhardclose
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 9a1a4b5..33c9568 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/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; |