tty: Always detach from initial TTY and open actual /dev/ttyN

This patch fixes a long standing problem with TTY's.  The original code
tried to workaround a limitation in the console of some embedded systems
that was detrimental on actual TTYs.

As an added benefit, the console specific "Press Enter" prompt for the
console port is now available on all TTYs -- meaning no getty needs to
be started and kept needlessly in the background until it is needed.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-07-21 14:57:58 +02:00
1 parent 4cf5b055cf
commit 44f8a2666f
3 files changed
+21 -25

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ void tty_start(finit_tty_t *tty)
args[i] = NULL;
_d("Starting %s: %s on %s", is_console ? "console" : "TTY", cmd, tty->name);
tty->pid = run_getty(cmd, args, is_console);
tty->pid = run_getty(cmd, args, tty->name, is_console);
}
void tty_stop(finit_tty_t *tty)