Prevent getty(8) from looping indefinitely if the device node doesn't
authortrasz <trasz@FreeBSD.org>
Sun, 25 Feb 2018 20:15:06 +0000 (20:15 +0000)
committertrasz <trasz@FreeBSD.org>
Sun, 25 Feb 2018 20:15:06 +0000 (20:15 +0000)
commit08613ce568c0285591cac92504f6047f46d40f78
treeddda255efe16a68d6c0d1f30fc5a63345c6f7724
parentb3b26983616ad975e1d09e9f34df62fbffe1e8fb
Prevent getty(8) from looping indefinitely if the device node doesn't
exist. This behaviour makes no sense for eg USB serial adapters, or
USB device-side serial templates.

This mostly reverts to pre-r135941 behaviour.

Reviewed by: imp@
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D14198
libexec/getty/main.c