From 136091886e287181c6c55bbeadf7325545285416 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 24 Jan 2011 23:45:22 +0100 Subject: 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 --- loginutils/getty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loginutils') 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) /* 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'; -- cgit v1.2.3