aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2025-08-30 11:39:39 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2025-08-30 12:00:47 +0900
commit7b5fb35e376cfab42335291008758a2a64ff66b1 (patch)
tree59f4829ba7f8c9a216d67f2bd7a61c9ce3d8dae9 /newlib/libc
parentbd409f3c12e28e1464dec7fd0d45db30280f1e56 (diff)
downloadnewlib-7b5fb35e376cfab42335291008758a2a64ff66b1.zip
newlib-7b5fb35e376cfab42335291008758a2a64ff66b1.tar.gz
newlib-7b5fb35e376cfab42335291008758a2a64ff66b1.tar.bz2
Cygwin: pty: Fix FLUSHO handling
Previsouly, FLUSHO did not work correctly. 1) Even when FLUSHO is set, read() returns with undesired data in the pipe if select() is called in advance. 2) FLUSHO is toggled even in the case pseudo console enabled. Due to these problems, read data in the pty master was partially lost when Ctrl-O is pressed. With this patch, the mask_flusho flag, that was introduced by the commit 9677efcf005a and caused the issue 1), has been dropped and select() and read() for pty master discards the pipe data instead if FLUSHO flag is set. In addition, FLUSHO handling in the case pseudo console activated is disabled. Addresses: https://cygwin.com/pipermail/cygwin/2025-August/258717.html Fixes: 2cab4d0bb4af ("Cygwin: pty, console: Refactor the code processing special keys.") Fixes: 9677efcf005a ("Cygwin: pty: Make FLUSHO and Ctrl-O work.") Reported-by: Reported-by: Thomas Wolff <towo@towo.net> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'newlib/libc')
0 files changed, 0 insertions, 0 deletions