rainbows 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/GIT-VERSION-GEN +1 -1
- data/lib/rainbows/base.rb +5 -2
- data/lib/rainbows/const.rb +1 -1
- metadata +4 -4
data/GIT-VERSION-GEN
CHANGED
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
|
-
|
22
|
-
|
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"
|
data/lib/rainbows/const.rb
CHANGED
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:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 4.3.
|
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-
|
18
|
+
date: 2011-09-02 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rack
|