]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pty: Fix reading CONIN$ when stdin is not a pty.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Fri, 14 Apr 2023 01:52:08 +0000 (10:52 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Fri, 14 Apr 2023 02:23:51 +0000 (11:23 +0900)
commit595fcb21ffc01b3469dad6484c11ebfd263d7f3c
tree2f4652e865aa4db6e7622fd89c4939e032bd41cb
parent2bc5e1f6f35bbafd5de62d532d6a77b6292bed8a
Cygwin: pty: Fix reading CONIN$ when stdin is not a pty.

Previously, the pty master sends inputs to the pipe for cygwin app
even when pseudo console is activated if stdin is not the pty.
This causes the problem that key input is not sent to non cygwin
app even if the app opens CONIN$. This patch sets switch_to_nat_pipe
to true regardless whether stdin is the pty or not to allow that case.

https://cygwin.com/pipermail/cygwin/2023-April/253424.html

Reported-by: Wladislav Artsimovich <cygwin@frost.kiwi>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/fhandler/pty.cc
winsup/cygwin/release/3.4.7
This page took 0.032426 seconds and 5 git commands to generate.