From owner-freebsd-hackers Sun Jul 11 18:45:18 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 36AA014E3F; Sun, 11 Jul 1999 18:45:12 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA13788; Sun, 11 Jul 1999 19:42:33 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA39424; Sun, 11 Jul 1999 19:40:58 -0600 (MDT) Message-Id: <199907120140.TAA39424@harmony.village.org> To: "Brian F. Feldman" Subject: Re: a BSD identd Cc: Niall Smart , hackers@FreeBSD.org In-reply-to: Your message of "Sun, 11 Jul 1999 20:34:04 EDT." References: Date: Sun, 11 Jul 1999 19:40:58 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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.... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message