summaryrefslogtreecommitdiff
path: root/src/login/logind-seat.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-01-26 10:15:42 +0100
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:23:10 +0100
commit059696ac014da265ee2d1b062cd0dc7bee3d2001 (patch)
tree92551b9245b08499b5f25ceb1e39b4482b5ef00a /src/login/logind-seat.c
parentdb74dfab5842da3f83d3bb9e2fa3bf8736939ecf (diff)
Remove support for auto-spawning VTs
Auto-spawning VTs requires systemd in practice. If you're using systemd you can just use its logind :)
Diffstat (limited to 'src/login/logind-seat.c')
-rw-r--r--src/login/logind-seat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c
index 8d13a6368..1be871375 100644
--- a/src/login/logind-seat.c
+++ b/src/login/logind-seat.c
@@ -169,6 +169,8 @@ int seat_load(Seat *s) {
return 0;
}
+/// UNNEEDED by elogind
+#if 0
static int vt_allocate(unsigned int vtnr) {
char p[sizeof("/dev/tty") + DECIMAL_STR_MAX(unsigned int)];
_cleanup_close_ int fd = -1;
@@ -210,6 +212,7 @@ int seat_preallocate_vts(Seat *s) {
return r;
}
+#endif // 0
int seat_apply_acls(Seat *s, Session *old_active) {
int r;
@@ -361,7 +364,11 @@ int seat_active_vt_changed(Seat *s, unsigned int vtnr) {
}
r = seat_set_active(s, new_active);
+
+/// elogind does not spawn autovt
+#if 0
manager_spawn_autovt(s->manager, vtnr);
+#endif // 0
return r;
}
@@ -420,7 +427,10 @@ int seat_start(Seat *s) {
NULL);
/* Initialize VT magic stuff */
+/// elogind does not support autospawning vts
+#if 0
seat_preallocate_vts(s);
+#endif // 0
/* Read current VT */
seat_read_active_vt(s);