From: Ulrich Drepper Date: Mon, 21 Aug 2000 19:12:24 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_1_93~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb7268b292b9dd1bcf11b47b4deadd0bbf6195af;p=thirdparty%2Fglibc.git Update. * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error of gethostbyname2_r call. --- diff --git a/ChangeLog b/ChangeLog index 8ea6c28c9e7..07c5e5c27ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-08-21 Ulrich Drepper + * 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 diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 45d1da22f95..17d27e786e2 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -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) \ { \