From 72b2897af4ff28c644697a635ec77d6043dff40e Mon Sep 17 00:00:00 2001 From: "Joshua T. Mckinney" Date: Mon, 16 May 2016 08:59:01 -0500 Subject: [PATCH] Detect Forks --- .travis.yml | 2 +- lib/hot_tub/pool.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a571998..47dd675 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ rvm: - 2.0.0-p648 - ruby-head - rbx-2 - - jruby-head \ No newline at end of file + - jruby \ No newline at end of file diff --git a/lib/hot_tub/pool.rb b/lib/hot_tub/pool.rb index 0d40114..3ca163c 100644 --- a/lib/hot_tub/pool.rb +++ b/lib/hot_tub/pool.rb @@ -119,7 +119,7 @@ def initialize(opts={},&client_block) @never_block = (@max_size == 0) - @pid = Process.pid unless opts[:pid] == false + @pid = Process.pid unless opts[:detect_fork] == false at_exit {shutdown!} unless @sessions_key end