Skip to content

Commit

Permalink
Do not trap unsupported HUP signal on Windows. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Mar 1, 2010
1 parent fc98d83 commit fe31d80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -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.
Expand Down
6 changes: 4 additions & 2 deletions lib/thin/server.rb
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lib/thin/version.rb
Expand Up @@ -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
Expand Down

0 comments on commit fe31d80

Please sign in to comment.