aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sio
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-03-10 10:06:27 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-03-10 10:06:27 +0000
commit2109bd5c869bb6b0682e3ea30c83c28b0df619e9 (patch)
tree19b9f8181c5c8ba759d708b3b9c58a795dda71fd /sys/dev/sio
parentf2523a7e729a4a9c7014b553a60cac90916563a6 (diff)
Notes
Diffstat (limited to 'sys/dev/sio')
-rw-r--r--sys/dev/sio/sio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 9a1a4b54deab0..33c956800a3b2 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;