Page MenuHomeFreeBSD

D14198.id38861.diff
No OneTemporary

D14198.id38861.diff

Index: libexec/getty/main.c
===================================================================
--- libexec/getty/main.c
+++ libexec/getty/main.c
@@ -426,15 +426,17 @@
static int
opentty(const char *tty, int flags)
{
- int i;
- int failopenlogged = 0;
+ int failopenlogged = 0, i, saved_errno;
while ((i = open(tty, flags)) == -1)
{
+ saved_errno = errno;
if (!failopenlogged) {
syslog(LOG_ERR, "open %s: %m", tty);
failopenlogged = 1;
}
+ if (saved_errno == ENOENT)
+ return 0;
sleep(60);
}
if (login_tty(i) < 0) {

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 24, 1:52 AM (8 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30219989
Default Alt Text
D14198.id38861.diff (551 B)

Event Timeline