diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-24 23:45:22 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-24 23:45:22 +0100 |
commit | 136091886e287181c6c55bbeadf7325545285416 (patch) | |
tree | ef4403d5174047d46b5dbe8df516dee763ffd5e2 | |
parent | e54cfc5477def68dfe00f39ac0737f4eaeda27e9 (diff) | |
download | busybox-w32-136091886e287181c6c55bbeadf7325545285416.tar.gz busybox-w32-136091886e287181c6c55bbeadf7325545285416.tar.bz2 busybox-w32-136091886e287181c6c55bbeadf7325545285416.zip |
getty: flush _only_ input after switching to the next baud rate
It was originally like this, but at some point TCIFLUSH was
inadvertently changed to TCIOFLUSH.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | loginutils/getty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index ed7e09aca..becff5c78 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
@@ -375,7 +375,7 @@ static char *get_logname(void) | |||
375 | 375 | ||
376 | /* Flush pending input (esp. after parsing or switching the baud rate) */ | 376 | /* Flush pending input (esp. after parsing or switching the baud rate) */ |
377 | usleep(100*1000); /* 0.1 sec */ | 377 | usleep(100*1000); /* 0.1 sec */ |
378 | tcflush(STDIN_FILENO, TCIOFLUSH); | 378 | tcflush(STDIN_FILENO, TCIFLUSH); |
379 | 379 | ||
380 | /* Prompt for and read a login name */ | 380 | /* Prompt for and read a login name */ |
381 | G.line_buf[0] = '\0'; | 381 | G.line_buf[0] = '\0'; |