Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x

From: Igmar Palsenberg (maillist@chello.nl)
Date: Thu Oct 26 2000 - 05:53:13 EST


> You obviously don't understand the communication channel being used.
> "/dev/log" is a UNIX DOMAIN SOCKET -- AF_UNIX. Datagrams are unreliable
> for _IP_ (AF_INET). Traffic on an AF_UNIX socket is always reliable.
>
> Ok, smarty, go change the syslogd source to open /dev/log as SOCK_STREAM
> and watch it fail. (syslog wasn't invented yesturday.)
>
> I would suggest disabling name resolution for syslog, but that's an ugly
> option. There's no way to stop a glibc system from doing a DNS query for
> a reverse lookup. HOWEVER, you can set the DNS timeout to 1 second and
> set the resolver options to prevent recursion (answer from cache only.)

Reverse isn't necessary on a central loghost. Saves at least one system
call.

        Igmar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 31 2000 - 21:00:17 EST