diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-04-01 06:55:24 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-04-01 06:55:24 +0000 |
| commit | 3d0b7a8e9fe54e4dde182987e75359ba03b2762f (patch) | |
| tree | bb78c0e770302a8760375b768bf39518866615f3 /sys/dev/sio/sio.c | |
| parent | c0e553d42d6402748da568f99f49252475640c68 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sio/sio.c')
| -rw-r--r-- | sys/dev/sio/sio.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index a29b7040e2a2..8dcf718d847c 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.78 1995/03/29 19:05:13 ache Exp $ + * $Id: sio.c,v 1.79 1995/03/29 20:20:01 ache Exp $ */ #include "sio.h" @@ -1104,7 +1104,9 @@ siointr1(com) this hack allows "raw" tty optimization works even if IGN* is set. */ - if ( (line_status & (LSR_PE|LSR_FE)) + if ( com->tp == NULL + || !(com->tp->t_state & TS_ISOPEN) + || (line_status & (LSR_PE|LSR_FE)) && (com->tp->t_iflag & IGNPAR) || (line_status & LSR_BI) && (com->tp->t_iflag & IGNBRK)) @@ -1116,7 +1118,8 @@ siointr1(com) #ifdef KGDB /* trap into kgdb? (XXX - needs testing and optim) */ if (recv_data == FRAME_END - && !(com->tp->t_state & TS_ISOPEN) + && ( com->tp == NULL + || !(com->tp->t_state & TS_ISOPEN)) && kgdb_dev == makedev(commajor, unit)) { kgdb_connect(0); continue; |
