diff options
author | bde <bde@FreeBSD.org> | 1996-11-29 16:16:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-11-29 16:16:47 +0000 |
commit | 47e902fb56c7869d1b8aeb3265484fe4305da007 (patch) | |
tree | da8d8143445622e501c98415341d776654bef9f3 /sys/kern | |
parent | 99d0d4f1a0e175ec3d3b69ab9a5ed3da05e711b8 (diff) | |
download | FreeBSD-src-47e902fb56c7869d1b8aeb3265484fe4305da007.zip FreeBSD-src-47e902fb56c7869d1b8aeb3265484fe4305da007.tar.gz |
Help broken d_stop() routines by flushing the output queue before
calling them (as well as after).
Found by: NIST PCTS
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 62d5e79..9f20af7 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)tty.c 8.8 (Berkeley) 1/21/94 - * $Id: tty.c,v 1.86 1996/11/29 15:23:42 bde Exp $ + * $Id: tty.c,v 1.87 1996/11/29 15:50:56 bde Exp $ */ /*- @@ -1158,8 +1158,10 @@ ttyflush(tp, rw) #if 0 again: #endif - if (rw & FWRITE) + if (rw & FWRITE) { + FLUSHQ(&tp->t_outq); CLR(tp->t_state, TS_TTSTOP); + } #ifdef sun4c /* XXX */ (*tp->t_stop)(tp, rw); #else |