lkml.org 
[lkml]   [2000]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: syslog() blocks on glibc 2.1.3 with kernel 2.2.x

> Ulrich Drepper <drepper@redhat.com> writes:
>
> > If anything has to be changed it's (as suggested) the configuration
> > or even the implementation of syslogd. Make it robust.
>
> OK, but my current syslogd only listens to /dev/log as a SOCK_DGRAM.
> If I wanted reliable syslogging, it would be listening on it as a
> SOCK_STREAM. Maybe I care more about performance and backwards
> compatibility than reliable syslogging. But whatever my reasons, my
> connection to syslogd is already unreliable and therefore *should not
> block*.
>
> (Could a syslogd listen on /dev/log both as SOCK_DGRAM and as
> SOCK_STREAM? If so, then your philosophy implies that glibc should be
> trying SOCK_STREAM *first*, falling back to SOCK_DGRAM for historical
> compatibility. Either way, when it uses datagrams, it should never
> block, period.)

The reason for this is that DGRAM is faster the STREAM. And with syslogd
being on a fast, secure network I can understand the design filosofie
behind this.

I'll have a look at syslog, and see if I can hack out the reverse lookups.

> - Pat

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/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.049 / U:15.780 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site