[Lldb-commits] [PATCH] D67230: Remove call to obsolete gethostbyname, using getaddrinfo
David Zarzycki via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 6 05:36:19 PDT 2019
davezarzycki added a comment.
This code is trying too hard and failing. Either the result of gethostname() is canonical or it is not. If it is not, then trying to canonicalize it is – for various reasons – a lost cause. For example, a given machine might have multiple network interfaces with multiple addresses per interface, each with a different canonical name. Separably, the result of `HostInfoPosix::GetHostname()` and latency thereof shouldn't depend on whether networking is up or down or what network the machine happened to be attached to at any given moment (like a laptop that travels between work and home).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67230/new/
https://reviews.llvm.org/D67230
More information about the lldb-commits
mailing list