1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Return EAI_SYSTEM if we're out of file descriptors

Resolves BZ #14719.
This commit is contained in:
Siddhesh Poyarekar
2012-11-19 13:01:43 +05:30
parent f6da27e536
commit cfde9b463d
5 changed files with 46 additions and 7 deletions

View File

@ -1049,6 +1049,12 @@ gaih_inet (const char *name, const struct gaih_service *service,
_res.options |= old_res_options & RES_USE_INET6;
if (status == NSS_STATUS_UNAVAIL)
{
result = GAIH_OKIFUNSPEC | -EAI_SYSTEM;
goto free_and_return;
}
if (no_data != 0 && no_inet6_data != 0)
{
/* If both requests timed out report this. */