>>>>> "l" == llin  <cheempz / gmail.com> writes:

l> I'm having trouble getting File.flock to work in non-blocking mode, in
l> ruby 1.9.0 (on CentOS 5).  The same code (show below in irb session)
l> works in ruby 1.8.5, but in 1.9.0 the attempt to lock in non-blocking
l> mode will block.  Has anyone else experienced this?  Any help or
l> suggestions would be much appreciated!

 The problem is that 1.8.6 test if LOCK_NB was given, or if ruby has only
 one thread when it call flock(2), what not do apparently 1.9. Is this
 volontary ?


Guy Decoux