diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-21 21:55:03 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-21 21:55:03 +0100 |
commit | fae7332ebf0f059039a8ede16a57da9646051159 (patch) | |
tree | bea9272e2acefadcaba526dc81e238e89f11080b /libbb | |
parent | 00eb23b47aa79461b913b320eba3c95b90e6eec4 (diff) | |
download | busybox-w32-fae7332ebf0f059039a8ede16a57da9646051159.tar.gz busybox-w32-fae7332ebf0f059039a8ede16a57da9646051159.tar.bz2 busybox-w32-fae7332ebf0f059039a8ede16a57da9646051159.zip |
lineedit: add a comment about possible use of tcflush()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
2911 | * before it comes in. UGLY! | 2911 | * before it comes in. UGLY! |
2912 | */ | 2912 | */ |
2913 | usleep(20*1000); | 2913 | usleep(20*1000); |
2914 | // MAYBE? tcflush(STDIN_FILENO, TCIFLUSH); /* flushes data received but not read */ | ||
2914 | } | 2915 | } |
2915 | #endif | 2916 | #endif |
2916 | 2917 | ||