unicorn-camilo 4.8.2.5.13 → 4.8.2.5.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cabaff4756154cd6057dd741837244380914404
4
- data.tar.gz: 3c956f73f2e2c1e815b37edeeb85874bf96c11c0
3
+ metadata.gz: 330f8b660b5a5bde8d093eb6fef58bcf79033c34
4
+ data.tar.gz: 15a6a514f5116267a5300b277c37f75ff4d18f22
5
5
  SHA512:
6
- metadata.gz: 5b40f18a1f90527337cb6f67f68bc799a55660acbf0a5708ca1d7de45826742a04447be669aae5107e90e1864e9d90a191de33e783f4cb5df39f200fd7656400
7
- data.tar.gz: eba8ca93ee3fdfb7c945e4507e122fb81e9450288e779b4640009819a589b3672f53870ae74ee68a83105e9c950b9834fc0569df4e464b104d7ba2b257922bd3
6
+ metadata.gz: 17a8e5261cc440fa28f3407e6054c5ac8ed9eac1f340f494fcdfc8786bf6c1476919ca7792799039a5dd2f539fea33d0bac591892ae7abc52e2e6802518c4148
7
+ data.tar.gz: f6d4d7598b4c714e0496387f7c945571e6e8454b6549669c377e7c7a325d6ba276af758d23c8d16afba24d62d0ed66327eed7b5ec3cc3c7bee6f84c3232db061
data/GIT-VERSION-FILE CHANGED
@@ -1 +1 @@
1
- GIT_VERSION = 4.8.2.5.g4091.dirty
1
+ GIT_VERSION = 4.8.2.6.g532d
@@ -43,6 +43,7 @@ class Unicorn::Configurator
43
43
  :before_exec => lambda { |server|
44
44
  server.logger.info("forked child re-executing...")
45
45
  },
46
+ :before_murder => nil,
46
47
  :pid => nil,
47
48
  :preload_app => false,
48
49
  :check_client_connection => false,
@@ -171,6 +172,14 @@ class Unicorn::Configurator
171
172
  set_hook(:before_exec, block_given? ? block : args[0], 1)
172
173
  end
173
174
 
175
+ # Sets the before_murder hook to a gien Proc object. This Proc object
176
+ # will be called by the master process before killing a lazy worker
177
+ # with SIGKILL, the point of this callback is NOT to prevent killing
178
+ # but to provide an instrumentation hook
179
+ def before_exec(*args, &block)
180
+ set_hook(:before_murder, block_given? ? block : args[0], 1)
181
+ end
182
+
174
183
  # sets the timeout of worker processes to +seconds+. Workers
175
184
  # handling the request/app.call/response cycle taking longer than
176
185
  # this time period will be forcibly killed (via SIGKILL). This
@@ -1 +1 @@
1
- Unicorn::Const::UNICORN_VERSION = '4.8.2.5.g4091.dirty'
1
+ Unicorn::Const::UNICORN_VERSION = '4.8.2.6.g532d'
data/unicorn.gemspec CHANGED
@@ -14,7 +14,7 @@ end.compact
14
14
 
15
15
  Gem::Specification.new do |s|
16
16
  s.name = %q{unicorn-camilo}
17
- s.version = "4.8.2.5.13"
17
+ s.version = "4.8.2.5.14"
18
18
  s.authors = ["#{name} hackers"]
19
19
  s.summary = summary
20
20
  s.date = Time.now.utc.strftime('%Y-%m-%d')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn-camilo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.2.5.13
4
+ version: 4.8.2.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unicorn hackers