mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
Update.
* sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error of gethostbyname2_r call.
This commit is contained in:
parent
9ca00c5b8e
commit
fb7268b292
@ -1,5 +1,8 @@
|
|||||||
2000-08-21 Ulrich Drepper <drepper@redhat.com>
|
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.
|
* intl/locale.alias: Add aliases for Korean.
|
||||||
|
|
||||||
2000-08-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
2000-08-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
@ -266,10 +266,18 @@ gaih_inet_serv (const char *servicename, struct gaih_typeproto *tp,
|
|||||||
rc = __gethostbyname2_r (name, _family, &th, tmpbuf, \
|
rc = __gethostbyname2_r (name, _family, &th, tmpbuf, \
|
||||||
tmpbuflen, &h, &herrno); \
|
tmpbuflen, &h, &herrno); \
|
||||||
} while (rc == ERANGE && herrno == NETDB_INTERNAL); \
|
} while (rc == ERANGE && herrno == NETDB_INTERNAL); \
|
||||||
if (rc != 0 && herrno == NETDB_INTERNAL) \
|
if (rc != 0) \
|
||||||
{ \
|
{ \
|
||||||
__set_h_errno (herrno); \
|
if (herrno == NETDB_INTERNAL) \
|
||||||
return -EAI_SYSTEM; \
|
{ \
|
||||||
|
__set_h_errno (herrno); \
|
||||||
|
return -EAI_SYSTEM; \
|
||||||
|
} \
|
||||||
|
if (herrno == TRY_AGAIN) \
|
||||||
|
{ \
|
||||||
|
__set_h_errno (herrno); \
|
||||||
|
return -EAI_AGAIN; \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
if (h != NULL) \
|
if (h != NULL) \
|
||||||
{ \
|
{ \
|
||||||
|
Loading…
Reference in New Issue
Block a user