merb-core 1.0.9 → 1.0.10

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.
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Merb
2
- VERSION = '1.0.9' unless defined?(Merb::VERSION)
2
+ VERSION = '1.0.10' unless defined?(Merb::VERSION)
3
3
  DM_VERSION = '0.9.10' unless defined?(Merb::DM_VERSION)
4
4
  DO_VERSION = '0.9.11' unless defined?(Merb::DO_VERSION)
5
5
  end
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.9
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-02-12 00:00:00 -08:00
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: 2
265
+ specification_version: 3
264
266
  summary: Merb. Pocket rocket web framework.
265
267
  test_files: []
266
268