syslog bug ? (was Re: [PATCH] add header "pppoe:" in ng_pppoe.c printfs)

Luigi Rizzo rizzo at icir.org
Sat Aug 5 15:51:25 UTC 2006


On Sat, Aug 05, 2006 at 12:42:12AM +0100, Joao Barros wrote:
...
> I patched and recompiled the kernel.
> After booting I notice that no messages from ppp are logged by syslog
> (messages|ppp.log)

What is your OS version ?

i hit a similar problem some time ago, and it seems that
the syslog client code remembers any error on the socket
(e.g. ICMP host/port unreachable messages) and does not
retry afterwards (or for some time, or there is some bug
in handling the error condition).
I am a bit fuzzy on the details because
this was some 3 years ago on a 4.x client.

Your problem is likely because ppp starts before the syslog daemon,
the initial message fails and then you get nothing anymore.

the vsyslog code in 6.x (libc/gen/syslog.c) is slightly different
from the one in 4.11.

cheers
luigi


More information about the freebsd-hackers mailing list