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