chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c999977
)
logind: make VT reservation logic compatible with containers
author
Lennart Poettering
<lennart@poettering.net>
Mon, 17 Sep 2012 17:11:48 +0000
(19:11 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 17 Sep 2012 17:11:48 +0000
(19:11 +0200)
src/login/logind.c
patch
|
blob
|
history
diff --git
a/src/login/logind.c
b/src/login/logind.c
index f72eb490fecfe8c3ac6c9b5844b9d6ac4d976971..3f71f5b4a9e5c4a4457de170ec2fd91e0b56104d 100644
(file)
--- a/
src/login/logind.c
+++ b/
src/login/logind.c
@@
-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;
}