Browse Source

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>
master
Takashi Yano 2 years ago
parent
commit
f907b5f405
  1. 2
      winsup/cygwin/fhandler/pty.cc

2
winsup/cygwin/fhandler/pty.cc

@ -4108,8 +4108,6 @@ fhandler_pty_slave::cleanup_for_non_cygwin_app (handle_set_t *p, tty *ttyp,
WaitForSingleObject (p->pipe_sw_mutex, INFINITE);
if (!switch_to)
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))
&& ttyp->pty_input_state_eq (tty::to_nat))
{

Loading…
Cancel
Save