From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id 52A253858425; Fri, 16 Feb 2024 08:28:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52A253858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708072105; bh=v++gFrc0bek9u4NJ++FqRGpTdi6mtsyhRz/9Xydv6RY=; h=From:To:Subject:Date:From; b=u7YeNsLMIuNHxihClWp+gmZgFeU7RIwzGhDHVlAYg6HnL0F+lSEt+oyfT7Z9sOgab 9hOhdoZZXVucv6gWNpwP7BzGhsysCEfWVEYuumwDY9xyasFHNv5rhs1h6TbNgTFFna sbq3071s+CSH+gqGo1A3c8h3nXdp7JfmcYY6mX04= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Takashi Yano To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_5-branch] Cygwin: pty: Fix failure to revert from nat-pipe in disable_pcon. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/cygwin-3_5-branch X-Git-Oldrev: d8f6db2fffaed7e0faaa58e17dd089b5d9bbd3e2 X-Git-Newrev: 384ea1f53bdfc424c24b6956153bb08eab912483 Message-Id: <20240216082825.52A253858425@sourceware.org> Date: Fri, 16 Feb 2024 08:28:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D384ea1f53bd= fc424c24b6956153bb08eab912483 commit 384ea1f53bdfc424c24b6956153bb08eab912483 Author: Takashi Yano Date: Fri Feb 16 17:15:29 2024 +0900 Cygwin: pty: Fix failure to revert from nat-pipe in disable_pcon. =20 Fixes: a9038789488e ("Cygwin: pty: Additional fix for transferring inpu= t at exit."); Signed-off-by: Takashi Yano Diff: --- winsup/cygwin/fhandler/pty.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/winsup/cygwin/fhandler/pty.cc b/winsup/cygwin/fhandler/pty.cc index e52590c9d..27a2c774a 100644 --- a/winsup/cygwin/fhandler/pty.cc +++ b/winsup/cygwin/fhandler/pty.cc @@ -4108,8 +4108,6 @@ fhandler_pty_slave::cleanup_for_non_cygwin_app (handl= e_set_t *p, tty *ttyp, WaitForSingleObject (p->pipe_sw_mutex, INFINITE); if (!switch_to) switch_to =3D get_console_process_id (current_pid, false, true, true); - if (!switch_to) - switch_to =3D 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)) {