]> 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:22:33 +0000 (11:22 +0900)
commite5fcc5837c9594ccb7d0d6f40af69f266f606c5b
treeb1d5a003be1550151e464c2958737cb2a2fd9d38
parentef75abddc76a914aabbb976dd116e39ab196bd28
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.034075 seconds and 5 git commands to generate.