Re: [PATCH] Cygwin: pty: Call FreeConsole() only if attached to current pty.

2020-05-19 Thread Corinna Vinschen
On May 17 11:34, Takashi Yano via Cygwin-patches wrote: > - After commit 071b8e0cbd4be33449c12bb0d58f514ed8ef893c, the problem > reported in https://cygwin.com/pipermail/cygwin/2020-May/244873.html > occurs. This is due to freeing console device accidentally rather > than pseudo console. This

[PATCH] Cygwin: pty: Call FreeConsole() only if attached to current pty.

2020-05-16 Thread Takashi Yano via Cygwin-patches
- After commit 071b8e0cbd4be33449c12bb0d58f514ed8ef893c, the problem reported in https://cygwin.com/pipermail/cygwin/2020-May/244873.html occurs. This is due to freeing console device accidentally rather than pseudo console. This patch makes sure to call FreeConsole() only if the process is