diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-08-30 11:39:39 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-08-30 12:00:47 +0900 |
commit | 7b5fb35e376cfab42335291008758a2a64ff66b1 (patch) | |
tree | 59f4829ba7f8c9a216d67f2bd7a61c9ce3d8dae9 /newlib/libc/sys | |
parent | bd409f3c12e28e1464dec7fd0d45db30280f1e56 (diff) | |
download | newlib-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/sys')
0 files changed, 0 insertions, 0 deletions