adaptivecomputing/torque — pull request #162 by jbarber (2013-08-07 13:25:59+00:00)
Title: Set trqauthd to connect to all valid addresses/protocols

Modifies trq_simple_connect() so it tries all entries returned by
getaddrinfo() instead of giving up if the connection fails. For example,
given an /etc/hosts of:
127.0.0.1 localhost
::1 localhost

trqauthd will now try both the IPv6 and IPv4 addresses.

Previously, if getaddrinfo() returned the IPv6 address first and
pbs_server wasn't listening on this address, then trqauthd would
not try to connect to the IPv4 address.