]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: cleanup argv parsing, utmp update, use writeall(), etc.
authorWerner Fink <werner@suse.de>
Mon, 9 May 2011 13:52:35 +0000 (15:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 17 May 2011 09:10:03 +0000 (11:10 +0200)
commit729def03e1cdc3520690ca8e512b0a0a5e9e7211
treed05c7feb2121ea3bc7b023f1437fae1bcc12f65d
parentbde20e1b2b220f30ada971ae6384a75ab0853b58
agetty: cleanup argv parsing, utmp update, use writeall(), etc.

Next cleanup, that is split off special character parsing in do_prompt()
and parse_args(), handle name of line of virtual console and use it in
utmp update as well as the session id.  Also move the initial TERM
variable to open_tty() as we use this later in open_tty().  Use writeall()
but avoid repeat to often for EAGAIN (compare with info page of the
(g)libc, description of the macro EAGAIN).

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