mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
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:
1 parent
51c5f3cbfa
commit
c76a58ef7a
7 files changed
+10
-32
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user