Skip to content

Commit

Permalink
Better detection of fork support
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein committed Mar 16, 2019
1 parent 6615d86 commit d37f408
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 d37f408

Please sign in to comment.