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:
Joachim Nilsson committed 2017-07-09 15:05:32 +02:00
1 parent 44f69bd575
commit 8aef1e76c3
4 files changed
+99 -6

No files matched your search

+2 -1
View File
@@ -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) {