From: Gerd Moellmann Date: Thu, 14 Oct 1999 11:23:11 +0000 (+0000) Subject: (Fopen_network_stream): Don't loop if gethostbyname X-Git-Tag: emacs-pretest-21.0.90~6440 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=45f9341666bc1b38839cbe264f1c0b0308618bdf;p=emacs.git (Fopen_network_stream): Don't loop if gethostbyname fails and h_errno is TRY_AGAIN. --- 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);