Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
boson on jruby file lock exception #42
Error: Bad file descriptor - cannot acquire exclusive lock on File not opened for write
I changed line 38 to this to fix the issue:
File.open(marshal_file, 'rb+') do |f|
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I had this same issue with a unit test in my code. It worked fine with MRI 1.9.3.
File.open(".\test\log\testfile3.log",File::CREAT, 0644) do |f|
I changed the above to the below and now it works perfectly in both MRI and Jruby.1.7.2
File.open(".\test\log\testfile3.log",'rb+') do |f|
You've saved me a lot of work and confusion.