X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogind-seat.c;fp=src%2Flogind-seat.c;h=ed67bc9eea8d4fc89a354e97d02cd67e941c6545;hb=30ed21ceb133173c849151c9fd6848bb34bb29bf;hp=bc695fea837f7daddd9e9393443e952deaec548f;hpb=975fd86771220287cdc30824760ff147913a0bd6;p=elogind.git diff --git a/src/logind-seat.c b/src/logind-seat.c index bc695fea8..ed67bc9ee 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;