Skip to content

Commit

Permalink
Merge pull request #718 from petergoldstein/feature/better_detection_…
Browse files Browse the repository at this point in the history
…of_fork_support

Better detection of fork support
  • Loading branch information
petergoldstein authored Mar 16, 2019
2 parents 6615d86 + d37f408 commit 3fb3f82
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/memcached_mock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,7 @@ def memcached_server(port, args='')
end

def supports_fork?
!defined?(RUBY_ENGINE) || !jruby?
end

def jruby?
RUBY_ENGINE == 'jruby'
Process.respond_to?(:fork)
end

def memcached_kill(port)
Expand Down

0 comments on commit 3fb3f82

Please sign in to comment.