Commit 45f93416 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Fopen_network_stream): Don't loop if gethostbyname

fails and h_errno is TRY_AGAIN.
parent 2bf6fa4b
No preview for this file type
......@@ -1944,15 +1944,19 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
while (1)
{
#if 0
#ifdef TRY_AGAIN
h_errno = 0;
#endif
#endif
immediate_quit = 1;
QUIT;
host_info_ptr = gethostbyname (XSTRING (host)->data);
immediate_quit = 0;
#if 0
#ifdef TRY_AGAIN
if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN))
#endif
#endif
break;
Fsleep_for (make_number (1), Qnil);
......
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