[PATCH] Cygwin: pty: Fix a race issue in startup of pseudo console.

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Mar 5 15:12:12 GMT 2021


On Mar  4 17:56, Takashi Yano via Cygwin-patches wrote:
> - If two non-cygwin apps are started simultaneously and this is the
>   first execution of non-cygwin apps in the pty, these occasionally
>   hang up. The cause is the race issue between term_has_pcon_cap(),
>   reset_switch_to_pcon() and setup_pseudoconsole(). This patch fixes
>   the issue.
> ---
>  winsup/cygwin/fhandler_tty.cc | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)

Pushed.


Thanks,
Corinna


More information about the Cygwin-patches mailing list