gethostbyname is deprecated and not reentrant
|Assignee:||Jorge Daza Garcia-Blanes||% Done:|
The connect_to_master function of communications.c crashes threaded applications because it uses gethostbyname, which is not reentrant. Moreover, current POSIX specifications marked this function as deprecated in favour of getaddrinfo which is reentrant and handles IPv4 or IPv6 in a more transparent way.
We are having problems with our own threaded apps that we can workaround with mutexes, but this hurts performance :(