aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r--sys/dev/sio/sio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 055a5e807d54..3dc4e2d46681 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