On Sun, 11 Jul 1999, Warner Losh wrote:

> In message <pine.bsf.4.10.9907112031200.31726-100...@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....

Ahh, I misunderstood you. In _this_ case you just proposed, the stat is
really pointless. What good would it do?

> 
> Warner
> 
> 

 Brian Fundakowski Feldman      _ __ ___ ____  ___ ___ ___  
 gr...@freebsd.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to