From: Daniel Berger Date: 2008-02-19T02:10:58+09:00 Subject: Re: File#flock with LOCK_SH causes Errno::EBADF on Solaris On Feb 18, 9:48 am, ts wrote: > >>>>> "D" == Daniel Berger writes: > >  Try it with > > D> fh = File.open('flock_test.txt', 'w') > >    fh = File.open('flock_test.txt', 'w+') > Yes, that worked. Do Solaris and Linux have different rules regarding shared file locks? Or is that a bug? Thanks, Dan