Difei Zhao wrote:

>   Somebody said I could open a file with exclusive lock, but I do not
> know an atomic way. Could anyone help? Thanks alot!
> 

man 2 open, there is a O_EXCL
-- 
Posted via http://www.ruby-forum.com/.