Cygwin: pty: Make tty setting NOFLSH work.

- With this patch, "stty noflsh" gets working in pty.
This commit is contained in:
Takashi Yano via Cygwin-patches 2021-02-18 18:07:11 +09:00 committed by Corinna Vinschen
parent 9a7e6073d1
commit 1c70319bda
1 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,8 @@ fhandler_termios::line_edit (const char *rptr, size_t nread, termios& ti,
goto not_a_sig;
termios_printf ("got interrupt %d, sending signal %d", c, sig);
eat_readahead (-1);
if (!(ti.c_lflag & NOFLSH))
eat_readahead (-1);
release_input_mutex_if_necessary ();
tc ()->kill_pgrp (sig);
acquire_input_mutex_if_necessary (INFINITE);