From owner-freebsd-hackers Fri Oct 26 20:33:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from parhelion.firedrake.org (parhelion.firedrake.org [212.135.138.219]) by hub.freebsd.org (Postfix) with ESMTP id 741A337B405 for ; Fri, 26 Oct 2001 20:33:44 -0700 (PDT) Received: from float by parhelion.firedrake.org with local (Exim 3.32 #1 (Debian)) id 15xKEA-0004mq-00; Sat, 27 Oct 2001 04:33:42 +0100 Date: Sat, 27 Oct 2001 04:33:42 +0100 To: Kris Kennaway Cc: void , hackers@FreeBSD.ORG Subject: Re: syslogd and kqueue Message-ID: <20011027043342.A18231@parhelion.firedrake.org> References: <20011026233957.A9925@parhelion.firedrake.org> <20011026200436.A61058@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011026200436.A61058@xor.obsecurity.org> User-Agent: Mutt/1.3.23i From: void 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 On Fri, Oct 26, 2001 at 08:04:36PM -0700, Kris Kennaway wrote: > On Fri, Oct 26, 2001 at 11:39:57PM +0100, void wrote: > > If syslogd used the kqueue interface, I believe it could open a new log > > file as soon as it was created, rather than waiting to receive a signal. > > Would this be worth doing, or would it be too big a divergence from the > > traditional behavior? > > I assume you mean "as soon as the configuration file is modified"? > That would be a big violation of POLA. No ... The traditional log-rotation dance goes something like: mv log log.0 touch log kill -1 `cat /var/run/syslogd.pid` gzip log.0 I'm suggesting that the "kill" could be left out if syslogd got the same smarts as "tail -F". -- Ben "An art scene of delight I created this to be ..." -- Sun Ra To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message