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
1 changed files with 4 additions and 1 deletions

View File

@ -1006,7 +1006,10 @@ 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) {
log_warning("Failed to pin reserved VT: %m");
/* Don't complain on VT-less systems */
if (errno != ENOENT)
log_warning("Failed to pin reserved VT: %m");
return -errno;
}