← Commit list

136091886

Denys Vlasenko
Denys Vlasenko
2011-01-24
FAILED Duration: 312s

Subject

getty: flush _only_ input after switching to the next baud rate

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

loginutils/getty.c+1 -1
@@ -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';