Commit db4042c8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(init_system_name): Retry gethostbyname only 5 times

and don't sleep after the last time.
parent 92c51e07
......@@ -2198,7 +2198,7 @@ init_system_name ()
{
struct hostent *hp;
int count;
for (count = 0; count < 10; count++)
for (count = 0;; count++)
{
#ifdef TRY_AGAIN
h_errno = 0;
......@@ -2208,6 +2208,8 @@ init_system_name ()
if (! (hp == 0 && h_errno == TRY_AGAIN))
#endif
break;
if (count >= 5)
break;
Fsleep_for (make_number (1), Qnil);
}
if (hp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment