Olá everybody,
I've been trying to solve an annoying problem with my Xemacs during 3
days and finally found the solution. AS a consequence, I'd like to share
the solution and propose to complete the FAQ.
The problem was that XEmacs was VEEEEERY slow to open when I'm on a bad
Wifi network, because the network disconnects from time to time.
This seems a very classical problem as the FAQ as an answer for it. It
says that you just have to add a line in your /etc/hosts (FAQ question
2.5.3).
Unfortunately, it didn't work for me (because the machine was not lookup
on /etc/hosts before trying a dns query).
Another post on the internet gave me a hint, but not a clear solution.
It seemed that Xemacs attemps to resolve a name using gethostbyname() (I
still don't understand why XEmacs X gui has the problem but not xemacs -nw)
The hint is therefore to change the order of the look up from network to
file. Using linux, it is either in /etc/host.conf (order hosts,bind) or
/etc/nsswitch.conf (I think something like "passwd : files dns"). On
OpenBSD (my case) in /etc/resolv.conf (add "lookup file bind" to
/etc/resolv.conf.tail)
Even if the solution might look very simple and trival for network-aware
people, I'd like to see the FAQ question 2.5.3 could be updated with
such an information to help other not-so-network-aware people not waste
3 days, like me ;)
Cheers
GM
--
Guillaume MULLER
Post-Doc - Sala C2-50
Laboratório de Técnicas Inteligentes (LTI)
Depto. Eng. Computação e Sistemas Digitai(PCS)
Escola Politécnica da Universidade de São Paulo
Av. Prof. Luciano Gualberto, 158 travessa 3
05508-900 - São Paulo - SP - Brasil
Tel: +55 11 3091 5397
http://www.lti.pcs.usp.br/~guillaume
você está a razão para suas orações - Objectivo Terra - Ridan
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta