init: actually set the tty parameters!
authorAlan Cox <alan@linux.intel.com>
Fri, 10 Nov 2017 21:39:18 +0000 (21:39 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 10 Nov 2017 21:39:18 +0000 (21:39 +0000)
Applications/util/init.c

index 22ea117..9935575 100644 (file)
@@ -796,6 +796,8 @@ static pid_t getty(const char **argv, const char *id)
                           than ulongs! */
                        tref.c_cflag |= baudmatch(argv[1]);
 
+                       tcsetattr(fdtty, TCSANOW, &tref);
+
                        /* make stdin, stdout and stderr point to fdtty */
 
                        dup(fdtty);