distributed node in linux

Magnus Fröberg mfroberg@REDACTED
Wed Mar 10 09:49:08 CET 2004


Tornkvist, Torbjorn [SVEAV:AA26:INTMAIL] wrote:
> 
> I belive that Magnus Fröberg did send out a patch for this
> problem many months ago. Don't know what happend with
> it though...
> 

ok, "Re: problem with gethostbyname/1" is quoted below.

/Magnus

Magnus Fröberg wrote:
> Raimo Niskanen wrote:
> 
>>
>> I have never come across a Gentoo Linux box before. Could you dump the 
>> following files as well as the output from os:type() and send to me?
> 
> 
> Hi
> 
> we have done a fix to inet_config.erl for our Gentoo users.
> It seems like Gentoo does not have the /etc/host.conf file so
> we added usage of /etc/nsswitch.conf as well for 'linux' while
> configuring the inet_db.
> 
> The diff below is against the R9C-0 version of inet_config.erl:
> 
> Index: lib/kernel/src/inet_config.erl
> ===================================================================
> RCS file: /home/share/erlang/cvsroot/otp/lib/kernel/src/inet_config.erl,v
> retrieving revision 1.1.1.5
> retrieving revision 1.7
> diff -u -r1.1.1.5 -r1.7
> --- lib/kernel/src/inet_config.erl      2 Sep 2003 13:34:18 -0000       
> 1.1.1.5
> +++ lib/kernel/src/inet_config.erl      3 Sep 2003 13:53:57 -0000       1.7
> @@ -82,8 +82,13 @@
>                 'bsd/os' ->
>                     load_resolv(filename:join(Etc,"irs.conf"), 
> host_conf_bsdos);
>                 linux ->
> -                   
> load_resolv(filename:join(Etc,"host.conf"),host_conf_linux),
> -
> +                   case 
> load_resolv(filename:join(Etc,"host.conf"),host_conf_li
> nux) of
> +                       ok ->
> +                           ok;
> +                       _Other ->
> +                           
> load_resolv(filename:join(Etc,"nsswitch.conf"), nssw
> itch_conf)
> +                   end,
> +
>                     % It may be the case that the domain name was not set
>                     % because the hostname was short. But we can now 
> look it
>                     % up and get the long name and the domain name from it.
> 
> 
> /Magnus
> 





More information about the erlang-questions mailing list