diff options
| author | Gerd Moellmann | 1999-10-14 11:23:11 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-10-14 11:23:11 +0000 |
| commit | 45f9341666bc1b38839cbe264f1c0b0308618bdf (patch) | |
| tree | b05cd52f71e71d590e4716a5e6d73031218128b5 /src/process.c | |
| parent | 2bf6fa4b52f20cf468091cc1d062e37604a07efc (diff) | |
| download | emacs-45f9341666bc1b38839cbe264f1c0b0308618bdf.tar.gz emacs-45f9341666bc1b38839cbe264f1c0b0308618bdf.zip | |
(Fopen_network_stream): Don't loop if gethostbyname
fails and h_errno is TRY_AGAIN.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 2cb1dd908ce..d2804763e3d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1944,16 +1944,20 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\ | |||
| 1944 | 1944 | ||
| 1945 | while (1) | 1945 | while (1) |
| 1946 | { | 1946 | { |
| 1947 | #if 0 | ||
| 1947 | #ifdef TRY_AGAIN | 1948 | #ifdef TRY_AGAIN |
| 1948 | h_errno = 0; | 1949 | h_errno = 0; |
| 1949 | #endif | 1950 | #endif |
| 1951 | #endif | ||
| 1950 | immediate_quit = 1; | 1952 | immediate_quit = 1; |
| 1951 | QUIT; | 1953 | QUIT; |
| 1952 | host_info_ptr = gethostbyname (XSTRING (host)->data); | 1954 | host_info_ptr = gethostbyname (XSTRING (host)->data); |
| 1953 | immediate_quit = 0; | 1955 | immediate_quit = 0; |
| 1956 | #if 0 | ||
| 1954 | #ifdef TRY_AGAIN | 1957 | #ifdef TRY_AGAIN |
| 1955 | if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN)) | 1958 | if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN)) |
| 1956 | #endif | 1959 | #endif |
| 1960 | #endif | ||
| 1957 | break; | 1961 | break; |
| 1958 | Fsleep_for (make_number (1), Qnil); | 1962 | Fsleep_for (make_number (1), Qnil); |
| 1959 | } | 1963 | } |