Permalink
Browse files

Do not trap unsupported HUP signal on Windows. Bump version.

  • Loading branch information...
1 parent fc98d83 commit fe31d8065e6b0499495fc41aa2d2d79024d822fc @macournoyer macournoyer committed Mar 1, 2010
Showing with 9 additions and 4 deletions.
  1. +3 −0 CHANGELOG
  2. +4 −2 lib/thin/server.rb
  3. +2 −2 lib/thin/version.rb
View
@@ -1,3 +1,6 @@
+== 1.2.7 No Hup
+ * Do not trap unsupported HUP signal on Windows
+
== 1.2.6 Crazy Delicious
* Make work with Rails 3 out-of-the-box.
* Auto-detect and load config.ru files on start. Makes Rails 3 work.
View
@@ -210,10 +210,12 @@ def running?
# * INT calls +stop+ to shutdown gracefully.
# * TERM calls <tt>stop!</tt> to force shutdown.
def setup_signals
- trap('QUIT') { stop } unless Thin.win?
trap('INT') { stop! }
trap('TERM') { stop! }
- trap('HUP') { restart }
+ unless Thin.win?
+ trap('QUIT') { stop }
+ trap('HUP') { restart }
+ end
end
def select_backend(host, port, options)
View
@@ -6,11 +6,11 @@ class PlatformNotSupported < RuntimeError; end
module VERSION #:nodoc:
MAJOR = 1
MINOR = 2
- TINY = 6
+ TINY = 7
STRING = [MAJOR, MINOR, TINY].join('.')
- CODENAME = "Crazy Delicious".freeze
+ CODENAME = "No Hup".freeze
RACK = [1, 0].freeze # Rack protocol version
end

0 comments on commit fe31d80

Please sign in to comment.