module ActiveSupport::ForkTracker::CoreExt

def fork(...)

def fork(...)
  if block_given?
    super do
      ForkTracker.check!
      yield
    end
  else
    unless pid = super
      ForkTracker.check!
    end
    pid
  end
end