public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: pty: Fix a bug on redirecting something to /dev/pty*.
Date: Mon, 20 Jul 2020 08:07:34 +0000 (GMT)	[thread overview]
Message-ID: <20200720080734.47631385DC0F@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e0a53d66256ba720fa3ad9f4eaef94da1df11463

commit e0a53d66256ba720fa3ad9f4eaef94da1df11463
Author: Takashi Yano via Cygwin-patches <cygwin-patches@cygwin.com>
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;


                 reply	other threads:[~2020-07-20  8:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200720080734.47631385DC0F@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).