Module: ActiveSupport::ForkTracker::CoreExt

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

Instance Method Summary collapse

Instance Method Details

#forkObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File '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