aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-01-15 23:00:13 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-01-15 23:00:13 +0100
commit6e8861b5f139cde297a95e785e7c616cf129df80 (patch)
tree4f4ce792bd441ac9541033e7f6899bedcf2b6d4a /loginutils
parent7ce209b9d4f6053b7e6d07dec66e382bc3614c35 (diff)
downloadbusybox-w32-6e8861b5f139cde297a95e785e7c616cf129df80.tar.gz
busybox-w32-6e8861b5f139cde297a95e785e7c616cf129df80.tar.bz2
busybox-w32-6e8861b5f139cde297a95e785e7c616cf129df80.zip
*: better comments on termios manipulations. No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c6
1 files changed, 4 insertions, 2 deletions
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)
294 /* non-raw output; add CR to each NL */ 294 /* non-raw output; add CR to each NL */
295 G.tty_attrs.c_oflag = OPOST | ONLCR; 295 G.tty_attrs.c_oflag = OPOST | ONLCR;
296 296
297 G.tty_attrs.c_cc[VMIN] = 1; /* block reads if < 1 char is available */ 297 /* reads would block only if < 1 char is available */
298 G.tty_attrs.c_cc[VTIME] = 0; /* no timeout (reads block forever) */ 298 G.tty_attrs.c_cc[VMIN] = 1;
299 /* no timeout (reads block forever) */
300 G.tty_attrs.c_cc[VTIME] = 0;
299#ifdef __linux__ 301#ifdef __linux__
300 G.tty_attrs.c_line = 0; 302 G.tty_attrs.c_line = 0;
301#endif 303#endif