]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve missing tty handling in init(8). This removes a check that did
authortrasz <trasz@FreeBSD.org>
Tue, 27 Feb 2018 10:54:15 +0000 (10:54 +0000)
committertrasz <trasz@FreeBSD.org>
Tue, 27 Feb 2018 10:54:15 +0000 (10:54 +0000)
commite1716d571be4409a74439edcf33297bdda28efcd
tree9f7d40961dbd50e2fd62223eb6bdbbcc6378e3de
parent1b2c2aff0fc64aace77735ce9712cef8e99fb5a9
Improve missing tty handling in init(8).  This removes a check that did
nothing - it was checking for ENXIO, which, with devfs, is no longer
returned - and was badly placed anyway, and replaces it with similar
one that works, and is done just before starting getty, instead of being
done when rereading ttys(5).

From the practical point of view, this makes init(8) handle disappearing
terminals (eg /dev/ttyU*) gracefully, without unneccessary getty restarts
and resulting error messages.

Reviewed by: imp@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D14307
include/ttyent.h
lib/libc/gen/getttyent.3
lib/libc/gen/getttyent.c
sbin/init/init.c