mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
tty: Refactor, remove useless runlevel argument
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
4cc3aed139
commit
963b736d8b
5 files changed
+10
-10
No files matched your search
+1
-1
@@ -72,7 +72,7 @@ static void watcher(void *arg, int fd, int events)
|
||||
|
||||
snprintf(name, sizeof(name), "/dev/%s", notified->name);
|
||||
entry = tty_find(name);
|
||||
if (entry && tty_enabled(&entry->data, runlevel)) {
|
||||
if (entry && tty_enabled(&entry->data)) {
|
||||
if (notified->mask & IN_CREATE)
|
||||
tty_start(&entry->data);
|
||||
else if (entry->data.pid)
|
||||
|
||||
Reference in new issue
Block a user