File#flock + LOCK_UN should return 0 ------------------------------------ Key: JRUBY-5283 URL: http://jira.codehaus.org/browse/JRUBY-5283 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.5.6 Environment: jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2010-12-03 9cf97c3) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [x86_64-java] Reporter: Daniel Berger
The docs say only flock + File::LOCK_NB could return false. However, JRuby returns false for LOCK_UN, too. MRI: {code} p File.open('test.txt').flock(File::LOCK_UN) # => 0 {code} JRuby {code} p File.open('test.txt').flock(File::LOCK_UN) # => false {code} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email