merb-core 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/merb-core/rack/adapter/abstract.rb +3 -1
- data/lib/merb-core/version.rb +1 -1
- metadata +5 -3
@@ -152,12 +152,13 @@ module Merb
|
|
152
152
|
pid, status = @pids[port + i], nil
|
153
153
|
poller = Merb::System::PortablePoller.new(pid)
|
154
154
|
begin
|
155
|
+
i = 0
|
155
156
|
loop do
|
156
157
|
# Watch for the pid to exit.
|
157
158
|
_, status = Process.wait2(pid, Process::WNOHANG)
|
158
159
|
break if status
|
159
160
|
|
160
|
-
if Merb::Config[:max_memory] && poller.memory > Merb::Config[:max_memory]
|
161
|
+
if (i % 120 == 0) && Merb::Config[:max_memory] && poller.memory > Merb::Config[:max_memory]
|
161
162
|
Process.kill("INT", pid)
|
162
163
|
if (Process.kill(0, pid) rescue false)
|
163
164
|
sleep Merb::Config[:hang_time] || 5
|
@@ -168,6 +169,7 @@ module Merb
|
|
168
169
|
status = Struct.new(:exitstatus).new(nil)
|
169
170
|
break
|
170
171
|
end
|
172
|
+
i += 1
|
171
173
|
sleep 0.25
|
172
174
|
end
|
173
175
|
|
data/lib/merb-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ezra Zygmuntowicz
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-18 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -238,6 +238,8 @@ files:
|
|
238
238
|
- lib/merb-core.rbc
|
239
239
|
has_rdoc: true
|
240
240
|
homepage: http://merbivore.com
|
241
|
+
licenses: []
|
242
|
+
|
241
243
|
post_install_message:
|
242
244
|
rdoc_options: []
|
243
245
|
|
@@ -260,7 +262,7 @@ requirements:
|
|
260
262
|
rubyforge_project:
|
261
263
|
rubygems_version: 1.3.1
|
262
264
|
signing_key:
|
263
|
-
specification_version:
|
265
|
+
specification_version: 3
|
264
266
|
summary: Merb. Pocket rocket web framework.
|
265
267
|
test_files: []
|
266
268
|
|