Skip to content

Commit

Permalink
In ruby 1.9.2, IO.reopen does not seems to preserve the mode. So we h…
Browse files Browse the repository at this point in the history
…ave to force it to read/write. Fixes 76, 94, 95.
  • Loading branch information
Corin Langosch committed Jul 27, 2010
1 parent 205e874 commit 1ae8d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/command.rb
Expand Up @@ -85,7 +85,7 @@ def run(worker_name = nil)
# Re-open file handles
@files_to_reopen.each do |file|
begin
file.reopen file.path
file.reopen file.path, "a+"
file.sync = true
rescue ::Exception
end
Expand Down

0 comments on commit 1ae8d40

Please sign in to comment.