Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix that FCGIs would leave log files open when asked to shut down by …

…USR2 (closes #3028) [sebastian.kanthak/josh]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 4766f521ee183bf5cba66f0cdd88ec3f1d28d473 1 parent 279113f
@dhh dhh authored
Showing with 7 additions and 0 deletions.
  1. +2 −0  railties/CHANGELOG
  2. +5 −0 railties/lib/fcgi_handler.rb
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fix that FCGIs would leave log files open when asked to shut down by USR2 #3028 [sebastian.kanthak/josh]
+
* Fixed that dispatcher preparation callbacks only run once in production mode. Mock Routes.reload so that dispatcher preparation callback tests run. [Rick]
* Fix syntax error in dispatcher than wrecked failsafe responses. #8625 [mtitorenko]
View
5 railties/lib/fcgi_handler.rb
@@ -169,6 +169,11 @@ def restart!
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
Please sign in to comment.
Something went wrong with that request. Please try again.