From: ara howard Date: 2008-02-19T11:51:26+09:00 Subject: Re: File#flock with LOCK_SH causes Errno::EBADF on Solaris On Feb 18, 2008, at 2:09 PM, Douglas Wells wrote: > In any case, right now Ruby seems to just use the OS's flock > function, and I don't think that it would be reasonable for the > Ruby implementation to attempt to get around this as it would be > far too messy -- and slow. I'd just live with the problem. http://codeforpeople.com/lib/ruby/posixlock/posixlock-0.0.1/README you really can't use flock on *nix systems anyhow, unless you are very careful - flock is sometime implemented in terms of posixlock, sometimes not. when it is not the locks are incompatible and break on many filesystems. fyi a @ http://drawohara.com/ -- sleep is the best meditation. h.h. the 14th dalai lama