aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-10 12:57:09 +0000
committerfrancis <francis>2008-03-10 12:57:09 +0000
commit8f184199ae1fc2ef729433ae160a532f9b9c5dcb (patch)
treefd9926d03638d3042b8997749e420c8fd246091a
parent80fa3e96cf95fa0bd409ae853f97648d8e3b4afe (diff)
TERM should handle current request before exiting, just as USR1 does.
See http://fastcgi.com/docs/faq.html#Signals
-rw-r--r--vendor/rails-2.0.2/railties/lib/fcgi_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/rails-2.0.2/railties/lib/fcgi_handler.rb b/vendor/rails-2.0.2/railties/lib/fcgi_handler.rb
index a644161e7..b76f9a163 100644
--- a/vendor/rails-2.0.2/railties/lib/fcgi_handler.rb
+++ b/vendor/rails-2.0.2/railties/lib/fcgi_handler.rb
@@ -7,7 +7,7 @@ class RailsFCGIHandler
SIGNALS = {
'HUP' => :reload,
'INT' => :exit_now,
- 'TERM' => :exit_now,
+ 'TERM' => :exit, # XXX was exit_now, changed by mySociety 2008-03-10
'USR1' => :exit,
'USR2' => :restart
}