Remove long since deprecated finit.conf: console <DEV> support

All this code did was trigger prctl() to set process name to "console",
which you could use as a simple means of figuring out if a process was
started from the system console.

There are other ways to do this, which Finit should not be involved in.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-10-23 19:28:11 +02:00
1 parent 51c5f3cbfa
commit c76a58ef7a
7 files changed
+10 -32

No files matched your search

+2 -6
View File
@@ -379,7 +379,6 @@ static int tty_exist(char *dev)
void tty_start(finit_tty_t *tty)
{
int is_console = 0;
char *dev;
if (tty->pid) {
@@ -393,18 +392,15 @@ void tty_start(finit_tty_t *tty)
return;
}
if (console && !strcmp(dev, console))
is_console = 1;
if (tty_exist(dev)) {
_d("%s: Not a valid TTY: %s", dev, strerror(errno));
return;
}
if (!tty->cmd)
tty->pid = run_getty(dev, tty->baud, tty->term, tty->noclear, tty->nowait, is_console);
tty->pid = run_getty(dev, tty->baud, tty->term, tty->noclear, tty->nowait);
else
tty->pid = run_getty2(dev, tty->cmd, tty->args, tty->noclear, tty->nowait, is_console);
tty->pid = run_getty2(dev, tty->cmd, tty->args, tty->noclear, tty->nowait);
}
void tty_stop(finit_tty_t *tty)