]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: don't put the VC into canonical mode
authorLubomir Rintel <lkundrak@v3.sk>
Fri, 19 Oct 2018 20:08:17 +0000 (22:08 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Oct 2018 09:03:47 +0000 (11:03 +0200)
commit8b58ffddf44ab020fa61a9df202358c6db485b5f
tree4cc0b60daeaa67eafbd2e92bf2a24e94433ec3aa
parent3f7e7e4d3ce97d2c056342674a2888a53e42786c
agetty: don't put the VC into canonical mode

The wait_for_term_input()'s select() needs to be tripped when the user
starts typing. Otherwise the reloads can abort an already in-progress login.

Coupled with \4 and \6 expansions that happen to be there on Fedora Server,
this means reload on every netlink event. With a couple of IPv6 routers
announcing their networks and temporary addresses in use can make it
sometimes virtually impossible to log in.

Seems like zero lflags do the job just fine on a Linux VT. Reset it to
canonical mode before running login.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c