Permalink
Browse files

In ruby 1.9.2, IO.reopen does not seems to preserve the mode. So we h…

…ave to force it to read/write. Fixes 76, 94, 95.
  • Loading branch information...
1 parent 205e874 commit 1ae8d406c18b4403c71f1de3ac6afcb821ef3fb6 Corin Langosch committed Jul 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delayed/command.rb
View
@@ -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

0 comments on commit 1ae8d40

Please sign in to comment.