Cygwin: pty: Fix failure to revert from nat-pipe in disable_pcon.
Fixes: a903878948
("Cygwin: pty: Additional fix for transferring input at exit.");
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
This commit is contained in:
parent
f3ba4db2e2
commit
f907b5f405
1 changed files with 0 additions and 2 deletions
|
@ -4108,8 +4108,6 @@ fhandler_pty_slave::cleanup_for_non_cygwin_app (handle_set_t *p, tty *ttyp,
|
||||||
WaitForSingleObject (p->pipe_sw_mutex, INFINITE);
|
WaitForSingleObject (p->pipe_sw_mutex, INFINITE);
|
||||||
if (!switch_to)
|
if (!switch_to)
|
||||||
switch_to = get_console_process_id (current_pid, false, true, true);
|
switch_to = get_console_process_id (current_pid, false, true, true);
|
||||||
if (!switch_to)
|
|
||||||
switch_to = get_console_process_id (current_pid, false, true, false);
|
|
||||||
if ((!switch_to && (ttyp->pcon_activated || stdin_is_ptys))
|
if ((!switch_to && (ttyp->pcon_activated || stdin_is_ptys))
|
||||||
&& ttyp->pty_input_state_eq (tty::to_nat))
|
&& ttyp->pty_input_state_eq (tty::to_nat))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue