]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: don't use log_err() for non-fatal errors
authorKarel Zak <kzak@redhat.com>
Thu, 8 Dec 2011 10:39:05 +0000 (11:39 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 8 Dec 2011 11:54:49 +0000 (12:54 +0100)
commit1593b134ebf596ae7a2b1e73f2dcc8c4e7febddd
treefc70d55cc650338054e22b9ac44421b4a4b387f3
parent86248cd28a27bdd9a437e389966b0415e106802e
agetty: don't use log_err() for non-fatal errors

The TIOCSCTTY ioctl requires that caller is session leader -- so it
depends on initd (or we have to add setsid() to aggety). It seems that the
traditional way is to setup tty in agetty and session in login(1).

It means that all session related things (TIOCSCTTY, vhangup, ...) in the
command agetty should be optional. (Note that vhangup() is called when
--hangup is explicitly specified on command line, so log_err() makes
sense there.)

Reported-by: Andrew Walrond <andrew@walrond.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c