X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-seat.c;h=e208112efd32f46589c44e85e1a85671ff2ce2c2;hb=01c94c5d0aff09b4c0e429d483c8eeba40017071;hp=126c5b84cc5b4f4ade8dddfb53174c635ddb6754;hpb=be94d95499bf9c63fe9331e9b9ecc64f32fe9d79;p=elogind.git diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 126c5b84c..e208112ef 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -19,21 +19,17 @@ along with systemd; If not, see . ***/ -#include #include #include #include -#include -#include #include -#include "sd-id128.h" #include "sd-messages.h" #include "logind-seat.h" #include "logind-acl.h" #include "util.h" #include "mkdir.h" -#include "path-util.h" +#include "formats-util.h" Seat *seat_new(Manager *m, const char *id) { Seat *s; @@ -181,34 +177,6 @@ static int vt_allocate(unsigned int vtnr) { return 0; } -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; - - if (!seat_has_vts(s)) - return 0; - - for (i = 1; i <= s->manager->n_autovts; i++) { - int q; - - q = vt_allocate(i); - if (q < 0) { - log_error_errno(q, "Failed to preallocate VT %u: %m", i); - r = q; - } - } - - return r; -} - int seat_apply_acls(Seat *s, Session *old_active) { int r; @@ -359,7 +327,6 @@ int seat_active_vt_changed(Seat *s, unsigned int vtnr) { } r = seat_set_active(s, new_active); - manager_spawn_autovt(s->manager, vtnr); return r; } @@ -417,9 +384,6 @@ int seat_start(Seat *s) { LOG_MESSAGE("New seat %s.", s->id), NULL); - /* Initialize VT magic stuff */ - seat_preallocate_vts(s); - /* Read current VT */ seat_read_active_vt(s);