Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 1999 19:40:58 -0600
From:      Warner Losh <imp@village.org>
To:        "Brian F. Feldman" <green@FreeBSD.org>
Cc:        Niall Smart <niall@pobox.com>, hackers@FreeBSD.org
Subject:   Re: a BSD identd 
Message-ID:  <199907120140.TAA39424@harmony.village.org>
In-Reply-To: Your message of "Sun, 11 Jul 1999 20:34:04 EDT." <Pine.BSF.4.10.9907112031200.31726-100000@janus.syracuse.net> 
References:  <Pine.BSF.4.10.9907112031200.31726-100000@janus.syracuse.net>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.10.9907112031200.31726-100000@janus.syracuse.net> "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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907120140.TAA39424>