lib/resque/worker.rb in resque-1.7.0 vs lib/resque/worker.rb in resque-1.7.1

- old
+ new

@@ -205,9 +205,13 @@ enable_gc_optimizations register_signal_handlers prune_dead_workers run_hook :before_first_fork register_worker + + # Fix buffering so we can `rake resque:work > resque.log` and + # get output from the child in there. + $stdout.sync = true end # Enables GC Optimizations if you're running REE. # http://www.rubyenterpriseedition.com/faq.html#adapt_apps_for_cow def enable_gc_optimizations