From owner-freebsd-hackers Sun Oct 28 19:39:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id 31B0B37B403; Sun, 28 Oct 2001 19:39:44 -0800 (PST) Received: from dialup-209.245.135.21.dial1.sanjose1.level3.net ([209.245.135.21] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 15y3H5-0001E5-00; Sun, 28 Oct 2001 19:39:43 -0800 Message-ID: <3BDCCFB2.1E5CFC49@mindspring.com> Date: Sun, 28 Oct 2001 19:40:34 -0800 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: obrien@FreeBSD.ORG Cc: Mike Barcroft , void , Kris Kennaway , hackers@FreeBSD.ORG Subject: Re: syslogd and kqueue References: <20011026233957.A9925@parhelion.firedrake.org> <20011026200436.A61058@xor.obsecurity.org> <20011027043342.A18231@parhelion.firedrake.org> <20011027001704.B2586@coffee.q9media.com> <20011027002622.C2586@coffee.q9media.com> <20011028180643.B59388@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David O'Brien wrote: > Actually, I find it weird and counter intuitive that syslogd will not > log to the files in the config file (/etc/syslog.conf) unless they > already exists. It really feels like we are living with a programming > bug 25 years later.... > > If I didn't want syslogd to log something, I would not have it in > syslog.conf. The intents is to have the switchover be atomic, in that the messages are not split in the middle of a line between files, and in that the switchover can not result in the loss of any messages. By using the rename/create/signal approach, syslogd is guaranteed to log new messages to the old file, despite the rename, until signalled to close and reopen the file (or a new file of another name, if syslog.conf is changed). If it created the file itself, there would be a potential race issue that would remain unresolved, which is hidden by the seperation of the create and the subsequent signal. Personally, I think that changing the syslogd is at most a harmless thing, and at worst, something that can be safely ignored, so I view the proposed change as nothing more than someone making work for themselves. The _useful_ thing to do would be to roll the newsyslog functionality into syslogd; however, as a .conf file that is expected to be distributed over NIS, I think that doing the syntax change is probably a bad idea... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message