[git commit] lineedit: add a comment about possible use of tcflush()
Denys Vlasenko
vda.linux at googlemail.com
Mon Dec 21 20:55:03 UTC 2020
commit: https://git.busybox.net/busybox/commit/?id=fae7332ebf0f059039a8ede16a57da9646051159
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/lineedit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index b3e7abac5..499be4972 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -2911,6 +2911,7 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman
* before it comes in. UGLY!
*/
usleep(20*1000);
+// MAYBE? tcflush(STDIN_FILENO, TCIFLUSH); /* flushes data received but not read */
}
#endif
More information about the busybox-cvs
mailing list