aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/fcgi_handler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/fcgi_handler.rb')
-rw-r--r--railties/lib/fcgi_handler.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/fcgi_handler.rb b/railties/lib/fcgi_handler.rb
index 85e5ca99b3..5bb26e4598 100644
--- a/railties/lib/fcgi_handler.rb
+++ b/railties/lib/fcgi_handler.rb
@@ -169,6 +169,11 @@ class RailsFCGIHandler
dispatcher_log :info, "restarted"
+ # close resources as they won't be closed by
+ # the OS when using exec
+ logger.close rescue nil
+ RAILS_DEFAULT_LOGGER.close rescue nil
+
exec(command_line)
end