]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 21 Aug 2000 19:12:24 +0000 (19:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 21 Aug 2000 19:12:24 +0000 (19:12 +0000)
* sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
of gethostbyname2_r call.

ChangeLog
sysdeps/posix/getaddrinfo.c

index 8ea6c28c9e7fef31b7aa3a682393bf5fa5896a2e..07c5e5c27ff835333299e1c654fa3c22daef1976 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
+       of gethostbyname2_r call.
+
        * intl/locale.alias: Add aliases for Korean.
 
 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
index 45d1da22f95cd692b40b31bd8ce2ffa0e3f34266..17d27e786e2166fcd8c8966e3560633bf5c7e143 100644 (file)
@@ -266,10 +266,18 @@ gaih_inet_serv (const char *servicename, struct gaih_typeproto *tp,
     rc = __gethostbyname2_r (name, _family, &th, tmpbuf,       \
          tmpbuflen, &h, &herrno);                              \
   } while (rc == ERANGE && herrno == NETDB_INTERNAL);          \
-  if (rc != 0 && herrno == NETDB_INTERNAL)                     \
+  if (rc != 0)                                                 \
     {                                                          \
-      __set_h_errno (herrno);                                  \
-      return -EAI_SYSTEM;                                      \
+      if (herrno == NETDB_INTERNAL)                            \
+       {                                                       \
+         __set_h_errno (herrno);                               \
+         return -EAI_SYSTEM;                                   \
+       }                                                       \
+      if (herrno == TRY_AGAIN)                                 \
+       {                                                       \
+         __set_h_errno (herrno);                               \
+         return -EAI_AGAIN;                                    \
+       }                                                       \
     }                                                          \
   if (h != NULL)                                               \
     {                                                          \