module ActiveSupport::ForkTracker::CoreExt

Public Instance Methods

fork(*) { || ... } click to toggle source
Calls superclass method
# File lib/active_support/fork_tracker.rb, line 6
def fork(*)
  if block_given?
    super do
      ForkTracker.check!
      yield
    end
  else
    unless pid = super
      ForkTracker.check!
    end
    pid
  end
end