diff options
author | ache <ache@FreeBSD.org> | 1993-11-08 19:36:32 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1993-11-08 19:36:32 +0000 |
commit | 5a7a2e36f5719ac327cc6cbaeee98ae5f0ca9b73 (patch) | |
tree | aade1862b13eee1c74e60118fd12d323cdbd7869 /sys/dev/sio | |
parent | 51db49745d26b9cbff9b29e663b8900942d291fe (diff) | |
download | FreeBSD-src-5a7a2e36f5719ac327cc6cbaeee98ae5f0ca9b73.zip FreeBSD-src-5a7a2e36f5719ac327cc6cbaeee98ae5f0ca9b73.tar.gz |
Add missing read flush code to siostop
Diffstat (limited to 'sys/dev/sio')
-rw-r--r-- | sys/dev/sio/sio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 055a5e8..3dc4e2d 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$ + * $Id: sio.c,v 1.12 1993/10/16 13:46:18 rgrimes Exp $ */ #include "sio.h" @@ -1471,6 +1471,10 @@ siostop(tp, rw) if (rw & FWRITE) comflush(com); disable_intr(); + if (rw & FREAD) { + com_events -= (com->iptr - com->ibuf); + com->iptr = com->ibuf; + } if (tp->t_state & TS_TTSTOP) com->state &= ~CS_TTGO; else |