[PATCH] Cygwin: console: Fix code for restoring console mode.
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Feb 17 12:59:00 GMT 2020
On Feb 17 21:46, Takashi Yano wrote:
> - Commit 774b8996d1f3e535e8267be4eb8e751d756c2cec has a bug that
> restores console output mode into console input. This patch fixes
> the issue.
> ---
> winsup/cygwin/fhandler_console.cc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
> index 2afb5c529..9bfee64d3 100644
> --- a/winsup/cygwin/fhandler_console.cc
> +++ b/winsup/cygwin/fhandler_console.cc
> @@ -1122,7 +1122,7 @@ fhandler_console::close ()
> &obi, sizeof obi, NULL);
> if (NT_SUCCESS (status) && obi.HandleCount == 1)
> if (orig_conout_mode != (DWORD) -1)
> - SetConsoleMode (get_handle (), orig_conout_mode);
> + SetConsoleMode (get_output_handle (), orig_conout_mode);
>
> release_output_mutex ();
>
> --
> 2.21.0
I pushed this now, but I let it simmering for a bit. I'll create the
3.1.4 release tomorrow.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20200217/fa682e18/attachment.sig>
More information about the Cygwin-patches
mailing list