xfce4-session warning about an unresolvable local hostname

Benedikt Meurer benedikt.meurer at googlemail.com
Sun Jul 24 20:06:34 CEST 2011


On Jul 24, 2011, at 16:41 , Guido Berhoerster wrote:

> * Benedikt Meurer <benedikt.meurer at googlemail.com> [2011-07-24 09:16]:
>>> Can the check whether getaddrinfo() on the hostname returned by
>>> gethostname() succeeds be removed from xfce4-session/xfsm-dns.c?
>>> As I noted in another mail, "localhost" is of course still
>>> resolvable.
>> 
>> IIRC that specific check was introduced to ensure that SM over
>> TCP works. Can you check the contents of the SESSION_MANAGER
>> envvar when logged in with TCP session management enabled?
> 
> It contains the (unresolvable) hostname, libICE (via libxtrans)
> determines it through gethostname().
> 
> gber at linux-4kta:~> printenv SESSION_MANAGER
> local/linux-4kta.site:@/tmp/.ICE-unix/4679,unix/linux-4kta.site:/tmp/.ICE-unix/4679,inet6/linux-4kta.site:35570,inet/linux-4kta.site:42074

Ah well, so the warning is right, session clients will not be able to resolve that name. This is not so much of a problem as long as the local or unix transports work, but it will fail as soon as the inet6 or inet transports are used.

Benedikt


More information about the Xfce4-dev mailing list