Skip to content

Commit

Permalink
Detect Forks
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMcKin committed May 16, 2016
1 parent 22ba66c commit 72b2897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -8,4 +8,4 @@ rvm:
- 2.0.0-p648
- ruby-head
- rbx-2
- jruby-head
- jruby
2 changes: 1 addition & 1 deletion lib/hot_tub/pool.rb
Expand Up @@ -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
Expand Down

0 comments on commit 72b2897

Please sign in to comment.