Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177800585
D14198.1795316957.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
566 B
Referenced Files
None
Subscribers
None
D14198.1795316957.diff
View Options
Index: head/libexec/getty/main.c
===================================================================
--- head/libexec/getty/main.c
+++ head/libexec/getty/main.c
@@ -427,15 +427,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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 3:09 AM (17 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41880937
Default Alt Text
D14198.1795316957.diff (566 B)
Attached To
Mode
D14198: Prevent getty(8) from looping if the device node doesn't exist.
Attached
Detach File
Event Timeline