[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: hostname() used in KApplication::launcher
From: Geert Jansen <g.t.jansen () stud ! tue ! nl>
Date: 2000-07-18 12:17:36
[Download RAW message or body]
David Faure wrote:
> Got this again today:
> "moreover the dcop problem has definitively something to do with
> hostname resolution, the desktop crash at launch on my morning test
> because the DNS does not resolved my hostname. When I add
> it in my /etc/hosts, It launches."
>
> Is it ok if I change
>
> if (gethostname(host, 200) == -1) {
> kdDebug(101) << "gethostname(): " << strerror(errno) << "\n";
> return 0;
> }
>
> into
>
> if (gethostname(host, 200) == -1) {
> host = strcpy("localhost");
> }
Hi David,
although using localhost is better than not using the launcher at all, I
think it's his system that is broken. gethostname() shouldn't do DNS at
all, it should return the hostname which is stored in the kernel by
sethostname().
Greetings,
Geert
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic