Use ndflush(), not while(getc()).
This commit is contained in:
parent
e6c1d2670f
commit
b8756ae04c
@ -1 +1 @@
|
||||
revision 1.17 intentionally removed
|
||||
revision 1.18 intentionally removed
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)tty_pty.c 7.21 (Berkeley) 5/30/91
|
||||
* $Id: tty_pty.c,v 1.8 1993/07/12 11:33:54 mycroft Exp $
|
||||
* $Id: tty_pty.c,v 1.9 1993/07/19 05:10:30 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -633,8 +633,7 @@ ptyioctl(dev, cmd, data, flag)
|
||||
case TIOCSETA:
|
||||
case TIOCSETAW:
|
||||
case TIOCSETAF:
|
||||
while (getc(&tp->t_outq) >= 0)
|
||||
;
|
||||
ndflush(&tp->t_outq, tp->t_outq.c_cc);
|
||||
break;
|
||||
|
||||
case TIOCSIG:
|
||||
|
Loading…
Reference in New Issue
Block a user