mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
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>
This commit is contained in:
parent
e54cfc5477
commit
136091886e
@ -375,7 +375,7 @@ static char *get_logname(void)
|
||||
|
||||
/* Flush pending input (esp. after parsing or switching the baud rate) */
|
||||
usleep(100*1000); /* 0.1 sec */
|
||||
tcflush(STDIN_FILENO, TCIOFLUSH);
|
||||
tcflush(STDIN_FILENO, TCIFLUSH);
|
||||
|
||||
/* Prompt for and read a login name */
|
||||
G.line_buf[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user