From: Lennart Poettering Date: Tue, 28 Jun 2011 00:53:49 +0000 (+0200) Subject: logind: properly preallocate configured auto VTs X-Git-Tag: v30~128 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e7886786a6fec22fa770eb1554781d5f82c4b349 logind: properly preallocate configured auto VTs --- diff --git a/src/logind-seat.c b/src/logind-seat.c index df91cd0d8..bc695fea8 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -199,7 +199,7 @@ static int seat_preallocate_vts(Seat *s) { if (!seat_is_vtconsole(s)) return 0; - for (i = 1; i < s->manager->n_autovts; i++) { + for (i = 1; i <= s->manager->n_autovts; i++) { int q; q = vt_allocate(i);