summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-05-12 11:52:12 -0700
committerEric Wong <normalperson@yhbt.net>2009-05-12 13:25:39 -0700
commitf3235420ebd2def1cdcb7c5bbe036f157835420d (patch)
tree831ee0a0d758e7ecc8d7c0f5cf40f2758c8759c7
parentb3c6fdce2a03da3d335315f18c19669a259824c5 (diff)
There may be other logs opened if preload_app is true
besides stderr/stdout paths.  So err on the safe side
and reopen everything.
-rw-r--r--lib/unicorn.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 08d1703..4a4e2e1 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -568,6 +568,7 @@ module Unicorn
         @config.reload
         @config.commit!(self)
         kill_each_worker(:QUIT)
+        Unicorn::Util.reopen_logs
         logger.info "done reloading config_file=#{@config.config_file}"
       rescue Object => e
         logger.error "error reloading config_file=#{@config.config_file}: " \