diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-28 03:21:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-28 03:21:14 +0200 |
commit | 30ed21ceb133173c849151c9fd6848bb34bb29bf (patch) | |
tree | 8a2463cf85f163e72d03914e21e146c149c96ba4 /src/logind-seat.c | |
parent | 975fd86771220287cdc30824760ff147913a0bd6 (diff) |
logind: ensure our autovts always stay allocated
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r-- | src/logind-seat.c | 4 |
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; |