From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 47631385DC0F; Mon, 20 Jul 2020 08:07:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47631385DC0F Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: pty: Fix a bug on redirecting something to /dev/pty*. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano via Cygwin-patches X-Git-Refname: refs/heads/master X-Git-Oldrev: 2aa3eb750332096ccc590d777176f4a686b71faf X-Git-Newrev: e0a53d66256ba720fa3ad9f4eaef94da1df11463 Message-Id: <20200720080734.47631385DC0F@sourceware.org> Date: Mon, 20 Jul 2020 08:07:34 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2020 08:07:34 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e0a53d66256ba720fa3ad9f4eaef94da1df11463 commit e0a53d66256ba720fa3ad9f4eaef94da1df11463 Author: Takashi Yano via Cygwin-patches Date: Sat Jul 18 13:48:47 2020 +0900 Cygwin: pty: Fix a bug on redirecting something to /dev/pty*. - After commit 0365031ce1347600d854a23f30f1355745a1765c, key input becomes not working by following steps. 1) Start cmd.exe in mintty. 2) Open another mintty. 3) Execute "echo AAA > /dev/pty*" (pty* is the pty opened in 1.) This patch fixes the issue. Diff: --- winsup/cygwin/fhandler_tty.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index a61167116..6a004f3a5 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -969,11 +969,6 @@ fhandler_pty_slave::open (int flags, mode_t) init_console_handler (true); } - isHybrid = false; - get_ttyp ()->pcon_pid = 0; - get_ttyp ()->switch_to_pcon_in = false; - get_ttyp ()->switch_to_pcon_out = false; - set_open_status (); return 1;