From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id C40733858425; Fri, 16 Feb 2024 08:28:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C40733858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708072120; bh=e8TlZH9NnD5x2FR+zT0yNcNtqIEvDkkT5fr681KoUO8=; h=From:To:Subject:Date:From; b=ARKdzDoCWHOlkL+aadcfknRZ6R0uukqHsyX1TB6emRjtOHTwzlt7nAMFkihNdyi7J TZZksQ0zzHkR5IcvLH+jiXHSYbCvrbAXsybNZW8WuOF0Ro+QFOoHMmYTrQeudI3LRp 1vhsz11FOUzFz0RXh7XQv1O0X6OupmWFAfmxAZbs= 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: 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/master X-Git-Oldrev: f3ba4db2e2b2839ae368c413794ac15da407b9a4 X-Git-Newrev: f907b5f405a3229a473e59df0ef1c2166e8f6e5e Message-Id: <20240216082840.C40733858425@sourceware.org> Date: Fri, 16 Feb 2024 08:28:40 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Df907b5f405a= 3229a473e59df0ef1c2166e8f6e5e commit f907b5f405a3229a473e59df0ef1c2166e8f6e5e 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)) {