bushpig 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/gemset.nix +1 -1
- data/lib/bushpig/server.rb +6 -0
- data/lib/bushpig/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07f2121ce3806939cd41665f3829d2b7d181e31ad371626bb91e99d4eb251dbe
|
4
|
+
data.tar.gz: 9936ecfd5202819dc9f8cd4f2e73f1f49a0361784fe172ed55a1811a330eb9b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f47000a9e2edb39989880da0c5c2b3b104f9ce165648c1c4494a8c12286e6aa3371a4c26fdb93d10f4c76dca2acd58536966ad882249f1c23f935e88e13376b
|
7
|
+
data.tar.gz: daef3436de8188a5fc413154acf365733073d1f5a2cbe3c3fe373b6001a9b1e612670f714d7ca7220a22f28f24fff33fca0f34d5b8348750c4c23c324265d14b
|
data/Gemfile.lock
CHANGED
data/gemset.nix
CHANGED
data/lib/bushpig/server.rb
CHANGED
@@ -19,10 +19,16 @@ module Bushpig
|
|
19
19
|
puts 'INT received, shutdown flagged'
|
20
20
|
@done = true
|
21
21
|
end
|
22
|
+
Signal.trap('TERM') do
|
23
|
+
reset_signals
|
24
|
+
puts 'TERM received, shutdown flagged'
|
25
|
+
@done = true
|
26
|
+
end
|
22
27
|
end
|
23
28
|
|
24
29
|
def reset_signals
|
25
30
|
Signal.trap('INT', 'DEFAULT')
|
31
|
+
Signal.trap('TERM', 'DEFAULT')
|
26
32
|
end
|
27
33
|
|
28
34
|
def serve(queue)
|
data/lib/bushpig/version.rb
CHANGED