From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 5 15:51:25 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A35C16A4DE; Sat, 5 Aug 2006 15:51:25 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD6D743D58; Sat, 5 Aug 2006 15:51:24 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id k75FpNIY075688; Sat, 5 Aug 2006 08:51:23 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id k75FpNhZ075687; Sat, 5 Aug 2006 08:51:23 -0700 (PDT) (envelope-from rizzo) Date: Sat, 5 Aug 2006 08:51:23 -0700 From: Luigi Rizzo To: Joao Barros Message-ID: <20060805085123.B74697@xorpc.icir.org> References: <70e8236f0608030735m519d880fgebeca7108b859244@mail.gmail.com> <20060804150302.GD96644@cell.sick.ru> <70e8236f0608040848x304a671cle6d490f43735737b@mail.gmail.com> <20060804182123.GH96644@cell.sick.ru> <70e8236f0608041642v5c7a85a9u4e4422bb6f08822f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <70e8236f0608041642v5c7a85a9u4e4422bb6f08822f@mail.gmail.com>; from joao.barros@gmail.com on Sat, Aug 05, 2006 at 12:42:12AM +0100 Cc: freebsd-hackers@freebsd.org, Gleb Smirnoff Subject: syslog bug ? (was Re: [PATCH] add header "pppoe:" in ng_pppoe.c printfs) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2006 15:51:25 -0000 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