chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
logind: ensure our autovts always stay allocated
[elogind.git]
/
src
/
logind-seat.c
diff --git
a/src/logind-seat.c
b/src/logind-seat.c
index bc695fea837f7daddd9e9393443e952deaec548f..ed67bc9eea8d4fc89a354e97d02cd67e941c6545 100644
(file)
--- a/
src/logind-seat.c
+++ b/
src/logind-seat.c
@@
-186,13
+186,15
@@
static int vt_allocate(int vtnr) {
return r;
}
-
static
int seat_preallocate_vts(Seat *s) {
+int seat_preallocate_vts(Seat *s) {
int r = 0;
unsigned i;
assert(s);
assert(s->manager);
+ log_debug("Preallocating VTs...");
+
if (s->manager->n_autovts <= 0)
return 0;