summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <ktsanaktsidis@zendesk.com>2024-01-22 12:06:03 +1100
committerKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2024-01-22 14:34:31 +1100
commit6c0e58a54e3fda604386d9c409e2a9998bbc9352 (patch)
tree653b9271c7182c83bfb7fe4d6e87e74ab4334cc4 /include
parentce5e7629b57904c34a529372f365e04d4f9abb06 (diff)
Make sure the correct error is raised for EAI_SYSTEM resolver fail
In case of EAI_SYSTEM, getaddrinfo is supposed to set more detail in errno; however, because we call getaddrinfo on a thread now, and errno is threadlocal, that information is being lost. Instead, we just raise whatever errno happens to be on the calling thread (which can be something very confusing, like `ECHILD`). Fix it by explicitly propagating errno back to the calling thread through the getaddrinfo_arg structure. [Bug #20198]
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions