rainbows 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/GIT-VERSION-GEN CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  GVF=GIT-VERSION-FILE
4
- DEF_VER=v4.3.0.GIT
4
+ DEF_VER=v4.3.1.GIT
5
5
 
6
6
  LF='
7
7
  '
data/lib/rainbows/base.rb CHANGED
@@ -18,8 +18,11 @@ module Rainbows::Base
18
18
  # we're don't use the self-pipe mechanism in the Rainbows! worker
19
19
  # since we don't defer reopening logs
20
20
  Rainbows::HttpServer::SELF_PIPE.each { |x| x.close }.clear
21
- trap(:USR1) { reopen_worker_logs(worker.nr) }
22
- trap(:QUIT) { Rainbows.quit! }
21
+
22
+ # spawn Threads since Logger takes a mutex by default and
23
+ # we can't safely lock a mutex in a signal handler
24
+ trap(:USR1) { Thread.new { reopen_worker_logs(worker.nr) } }
25
+ trap(:QUIT) { Thread.new { Rainbows.quit! } }
23
26
  [:TERM, :INT].each { |sig| trap(sig) { exit!(0) } } # instant shutdown
24
27
  Rainbows::ProcessClient.const_set(:APP, Rainbows.server.app)
25
28
  logger.info "Rainbows! #@use worker_connections=#@worker_connections"
@@ -2,7 +2,7 @@
2
2
  # :enddoc:
3
3
  module Rainbows::Const
4
4
 
5
- RAINBOWS_VERSION = '4.3.0'
5
+ RAINBOWS_VERSION = '4.3.1'
6
6
 
7
7
  include Unicorn::Const
8
8
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainbows
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 3
9
- - 0
10
- version: 4.3.0
9
+ - 1
10
+ version: 4.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rainbows! hackers
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-20 00:00:00 Z
18
+ date: 2011-09-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rack