From owner-freebsd-hackers Mon Oct 29 9:41:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id AC30437B401; Mon, 29 Oct 2001 09:41:29 -0800 (PST) Received: from dialup-209.245.136.208.dial1.sanjose1.level3.net ([209.245.136.208] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 15yGPg-0000XV-00; Mon, 29 Oct 2001 09:41:29 -0800 Message-ID: <3BDD94FB.B9B87153@mindspring.com> Date: Mon, 29 Oct 2001 09:42:19 -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> <3BDCCFB2.1E5CFC49@mindspring.com> <20011028202345.A60175@dragon.nuxi.com> <3BDD8557.A2190693@mindspring.com> <20011029093252.A2425@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: > > On Mon, Oct 29, 2001 at 08:35:35AM -0800, Terry Lambert wrote: > > > No muss, no fuss. So where is the race? > > > Mike had the only justification so far -- that of permissions of the > > > file. > > > > Think multiple instances of syslogd. > > You are going to have to help me out a little bit more -- I can think of > no problems with what I proposed vs. the existing way. Both have a race > of which daemon opens the file first. Not if you don't use O_CREAT; then they don't. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message