Don't override Object#fork in Ruby 3.0

It's no longer necessary with https://bugs.ruby-lang.org/issues/9573
This commit is contained in:
Étienne Barrié 2021-09-24 10:06:16 +02:00
parent 581aac754c
commit d63add1039

@ -40,7 +40,7 @@ def check!
def hook!
if Process.respond_to?(:fork)
::Object.prepend(CoreExtPrivate)
::Object.prepend(CoreExtPrivate) if RUBY_VERSION < "3.0"
::Kernel.prepend(CoreExtPrivate)
::Kernel.singleton_class.prepend(CoreExt)
::Process.singleton_class.prepend(CoreExt)