From 45f9341666bc1b38839cbe264f1c0b0308618bdf Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 14 Oct 1999 11:23:11 +0000 Subject: [PATCH] (Fopen_network_stream): Don't loop if gethostbyname fails and h_errno is TRY_AGAIN. --- src/ChangeLog | 5 +++++ src/process.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 5f442fa1f21..ba4e0b571ab 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +1999-10-14 Gerd Moellmann + + * process.c (Fopen_network_stream): Don't loop if gethostbyname + fails and h_errno is TRY_AGAIN. + 1999-10-13 Dave Love * filelock.c (lock_file): Move gcpro of `fn'. diff --git a/src/process.c b/src/process.c index 2cb1dd908ce..d2804763e3d 100644 --- a/src/process.c +++ b/src/process.c @@ -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); -- 2.39.5