123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::ForkTracker::CoreExt

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: activesupport/lib/active_support/fork_tracker.rb

Instance Method Summary

Instance Method Details

#fork

[ GitHub ]

  
# File 'activesupport/lib/active_support/fork_tracker.rb', line 16

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