mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Follow-up to eec32e2: Support for removing TTYs at runtime
In commit eec32e2 support for reloading TTY configurations was added.
This patch is a follow-up to that with support for cleaning up and
removing allocated TTYs.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
44f69bd575
commit
8aef1e76c3
4 files changed
+99
-6
No files matched your search
+2
-1
@@ -358,7 +358,7 @@ static void parse_dynamic(char *line, struct timeval *mtime)
|
||||
}
|
||||
|
||||
if (MATCH_CMD(line, "tty ", x)) {
|
||||
tty_register(strip_line(x));
|
||||
tty_register(strip_line(x), mtime);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -462,6 +462,7 @@ void conf_reload_dynamic(void)
|
||||
|
||||
/* Mark and sweep */
|
||||
svc_mark_dynamic();
|
||||
tty_mark();
|
||||
|
||||
num = scandir(dir, &e, NULL, alphasort);
|
||||
if (num < 0) {
|
||||
|
||||
Reference in new issue
Block a user