[PATCH v2] Cygwin: console: Introduce new thread which handles input signal.

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Feb 17 09:35:03 GMT 2021


On Feb 16 20:37, Takashi Yano via Cygwin-patches wrote:
> - Currently, Ctrl-Z, Ctrl-\ and SIGWINCH does not work in console
>   if the process does not call read() or select(). This is because
>   these are processed in process_input_message() which is called
>   from read() or select(). This is a long standing issue of console.
>   Addresses:
>     https://cygwin.com/pipermail/cygwin/2020-May/244898.html
>     https://cygwin.com/pipermail/cygwin/2021-February/247779.html
> 
>   With this patch, new thread which handles only input signals is
>   introduced so that Crtl-Z, etc. work without calling read() or
>   select(). Ctrl-S and Ctrl-Q are also handled in this thread.
> ---
>  winsup/cygwin/exceptions.cc       |   1 +
>  winsup/cygwin/fhandler.h          |   5 +-
>  winsup/cygwin/fhandler_console.cc | 177 +++++++++++++++++++++++++++++-
>  3 files changed, 181 insertions(+), 2 deletions(-)

Pushed.  This is great!  Can you please add an entry to the release docs?


Thanks,
Corinna


More information about the Cygwin-patches mailing list