1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Add missing read flush code to siostop

This commit is contained in:
Andrey A. Chernov 1993-11-08 19:36:32 +00:00
parent d88c633bca
commit fe04cbf968
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=733
3 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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