]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: don't ignore netlink on select()
authorKarel Zak <kzak@redhat.com>
Tue, 24 Nov 2015 16:44:38 +0000 (17:44 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Nov 2015 16:44:38 +0000 (17:44 +0100)
commit5184d93630ded83770a90e6a663a2ca3f5f4bbf2
tree61fbd0c555a360888cbc1d4bc337a5bf15689139
parent0172ebba52718afe89b5d1941266825b065358cb
agetty: don't ignore netlink on select()

agetty uses NETLINK_ROUTE to be notified about network interface
changes. Unfortunately, the code that monitor the netlink FD does not
increment number of the monitored file descriptors when call
select(2), so the netlink notifications are invisible for agetty.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1278906
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c