Cygwin: pty: Make rlwrap work with cmd.exe.

- After the commit 919dea66, "rlwrap cmd" fails to start pseudo
  console. This patch fixes the issue.
This commit is contained in:
Takashi Yano 2021-04-19 20:51:53 +09:00 committed by Corinna Vinschen
parent bb93c6d7c2
commit 5176afeb7d
1 changed files with 2 additions and 0 deletions

View File

@ -1170,6 +1170,8 @@ fhandler_pty_slave::reset_switch_to_pcon (void)
}
if (isHybrid)
return;
if (get_ttyp ()->pcon_start)
return;
WaitForSingleObject (pcon_mutex, INFINITE);
if (!pcon_pid_self (get_ttyp ()->pcon_pid)
&& pcon_pid_alive (get_ttyp ()->pcon_pid))