Cygwin: pty: Fix transferring type-ahead input between input pipes.
commit9fc746d17dc3087a50b464a947441fd69d422ca4
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Thu, 1 Jun 2023 10:44:41 +0000 (1 19:44 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Thu, 1 Jun 2023 11:00:45 +0000 (1 20:00 +0900)
tree2e8216741a5bf0cbd829d6dcf38248423c1aae23
parent28489b0702556eb183029750b0292fa3d59d31c0
Cygwin: pty: Fix transferring type-ahead input between input pipes.

After the commit e5fcc5837c95, transferring type-ahead input between
the pipe for cygwin app and the pipe for non-cygwin app will not be
done appropriately when the stdin of the non-cygwin app is not pty.
Due to this issue, sometimes the keyboard input might be lost which
should be sent to cygwin app. This patch fixes the issue.

Fixes: e5fcc5837c95 ("Cygwin: pty: Fix reading CONIN$ when stdin is not a pty.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/fhandler/pty.cc