Method: ActiveSupport::ForkTracker.after_fork_callback

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

.after_fork_callbackObject



19
20
21
22
23
24
25
# File 'activesupport/lib/active_support/fork_tracker.rb', line 19

def after_fork_callback
  new_pid = Process.pid
  if @pid != new_pid
    @callbacks.each(&:call)
    @pid = new_pid
  end
end