summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-28 03:21:14 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-28 03:21:14 +0200
commit30ed21ceb133173c849151c9fd6848bb34bb29bf (patch)
tree8a2463cf85f163e72d03914e21e146c149c96ba4 /src/logind-seat.c
parent975fd86771220287cdc30824760ff147913a0bd6 (diff)
logind: ensure our autovts always stay allocated
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r--src/logind-seat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index bc695fea83..ed67bc9eea 100644
--- 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;