From c7ba76a21c5d00fb5c173cd6aa847442bbc652cb Mon Sep 17 00:00:00 2001 From: Yuichi Tateno Date: Mon, 3 Oct 2011 16:51:19 +0900 Subject: OobGC: force GC.start [ew: we need to explicitly enable GC if it is disabled and respect applications that disable GC] Acked-by: Eric Wong --- lib/unicorn/oob_gc.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/unicorn/oob_gc.rb b/lib/unicorn/oob_gc.rb index 312b44c..4e78a70 100644 --- a/lib/unicorn/oob_gc.rb +++ b/lib/unicorn/oob_gc.rb @@ -61,7 +61,9 @@ module Unicorn::OobGC if OOBGC_PATH =~ OOBGC_ENV[PATH_INFO] && ((@@nr -= 1) <= 0) @@nr = OOBGC_INTERVAL OOBGC_ENV.clear + disabled = GC.enable GC.start + GC.disable if disabled end end -- cgit v1.2.3-24-ge0c7