File should be open in read/write mode. When doing lock on a file. #288

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@arunagw
Member
arunagw commented Apr 18, 2011

File should be open in 'r+' mode to pass with jruby-1.6.1.

Tested with other ruby version as well.

Solved LightHouse Ticket [#6662]

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6662-fileflock-cant-lock-read-only-file-for-exclusive-access

Jruby Change-log :-

http://jira.codehaus.org/browse/JRUBY-5627

@tenderlove
Member

Merged and pushed. Thanks!

@tenderlove tenderlove closed this Apr 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment