Browse Source

getty: ensure tty is sane

K. Lange 2 years ago
parent
commit
23573a1f35
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/getty.c

+ 1 - 0
apps/getty.c

@@ -51,6 +51,7 @@ int main(int argc, char * argv[]) {
 	dup2(fd_serial, 1);
 	dup2(fd_serial, 2);
 
+	system("stty sane");
 	system("ttysize -q");
 
 	char * tokens[] = {"/bin/login",NULL,NULL,NULL};