]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: proper session on the terminal line
authorWerner Fink <werner@suse.de>
Mon, 9 May 2011 13:52:36 +0000 (15:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 17 May 2011 09:10:21 +0000 (11:10 +0200)
commit3aa6b68f7e19fa3e1c2bba75bee921a98b7b46af
tree22c2878b4045db70087eacc05b9041aa00490225
parent729def03e1cdc3520690ca8e512b0a0a5e9e7211
agetty: proper session on the terminal line

Ensure a proper session on the terminal line, that is do a
vhangup() and become the controlling terminal.  After this
determine if the terminal line a virtual console by using
the ioctl TIOCMGET to get the status modem bits of a serial
line which is a invalid argument on a virtual console.

Signed-off-by: Werner Fink <werner@suse.de>
term-utils/agetty.8
term-utils/agetty.c