From owner-freebsd-hackers Sun Jul 11 19:43:35 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 0D1CE15011 for ; Sun, 11 Jul 1999 19:43:33 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id WAA34022; Sun, 11 Jul 1999 22:43:36 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Sun, 11 Jul 1999 22:43:36 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Warner Losh Cc: Niall Smart , hackers@FreeBSD.org Subject: Re: a BSD identd In-Reply-To: <199907120140.TAA39424@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 11 Jul 1999, Warner Losh wrote: > In message "Brian F. Feldman" writes: > : I have this fixed in my latest code (on freefall of course). I did not > : use an original stat because that's pointless, as it adds another race > : condition. The only downside to my approach is that if it's a symlink > : to a dev, the dev can get opened/closed, and d_open/d_close be called. > > How does the original stat add a race condition. You stat the file, > open it, then fstat it. If the two match you know you're good. If > they don't, you can detect that something bad has happened.... Ahh, I misunderstood you. In _this_ case you just proposed, the stat is really pointless. What good would it do? > > Warner > > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message