Module: ActiveSupport::ForkTracker::CoreExt

Included in:
CoreExtPrivate
Defined in:
activesupport/lib/active_support/fork_tracker.rb

Instance Method Summary collapse

Instance Method Details

#forkObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'activesupport/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