logind: make VT reservation logic compatible with containers

This commit is contained in:
Lennart Poettering 2012-09-17 19:11:48 +02:00
parent c999977392
commit d4d882e5ce

View file

@ -1006,6 +1006,9 @@ static int manager_reserve_vt(Manager *m) {
m->reserve_vt_fd = open(p, O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
if (m->reserve_vt_fd < 0) {
/* Don't complain on VT-less systems */
if (errno != ENOENT)
log_warning("Failed to pin reserved VT: %m");
return -errno;
}