From 6e8861b5f139cde297a95e785e7c616cf129df80 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 15 Jan 2012 23:00:13 +0100 Subject: *: better comments on termios manipulations. No code changes. Signed-off-by: Denys Vlasenko --- loginutils/getty.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'loginutils/getty.c') diff --git a/loginutils/getty.c b/loginutils/getty.c index 1f417591b..afb411b98 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -294,8 +294,10 @@ static void init_tty_attrs(int speed) /* non-raw output; add CR to each NL */ G.tty_attrs.c_oflag = OPOST | ONLCR; - G.tty_attrs.c_cc[VMIN] = 1; /* block reads if < 1 char is available */ - G.tty_attrs.c_cc[VTIME] = 0; /* no timeout (reads block forever) */ + /* reads would block only if < 1 char is available */ + G.tty_attrs.c_cc[VMIN] = 1; + /* no timeout (reads block forever) */ + G.tty_attrs.c_cc[VTIME] = 0; #ifdef __linux__ G.tty_attrs.c_line = 0; #endif -- cgit v1.2.3