[PATCH v5 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

Ken Brown kbrown@cornell.edu
Sat Sep 14 13:11:00 GMT 2019


On 9/8/2019 8:58 AM, Takashi Yano wrote:
> - When the I/O pipe is switched to the pseudo console side, the
>    behaviour of Ctrl-C was unstable. This rarely happens, however,
>    for example, shell sometimes crashes by Ctrl-C in that situation.
>    Furthermore, Ctrl-C was ignored if output of non-cygwin program
>    is redirected to pipe. This patch fixes these issues.
> 
> v5:
> Add a workaround for piped non-cygwin program.
> 
> v4:
> Fix the problem 1 and 2 reported in
> https://cygwin.com/ml/cygwin-patches/2019-q3/msg00175.html
> 
> v3:
> Fix mistake in v2.
> 
> v2:
> Remove the code which accidentally clears ENABLE_ECHO_INPUT flag.
> 
> 
> Takashi Yano (1):
>    Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.
> 
>   winsup/cygwin/fhandler.h      |  4 ----
>   winsup/cygwin/fhandler_tty.cc | 44 +++++++++++++++++++++++++----------
>   winsup/cygwin/select.cc       |  2 +-
>   winsup/cygwin/spawn.cc        | 42 ++++++++++++++-------------------
>   4 files changed, 50 insertions(+), 42 deletions(-)

Pushed.  Thanks.

Ken



More information about the Cygwin-patches mailing list