Signed-off-by: Sami Kerola <kerolasa@iki.fi>
@@ -414,7 +414,7 @@ int main(int argc, char *argv[])
tv.tv_sec = delay;
tv.tv_usec = 0;
if (select(STDOUT_FILENO, &readfds, NULL, NULL, &tv) > 0) {
if (read(0, &c, 1) != 1)
if (read(STDIN_FILENO, &c, 1) != 1)
break;
parse_input(c);
}
The note is not visible to the blocked user.