Module: Litesupport::Forkable

Included in:
Liteconnection
Defined in:
lib/litestack/litesupport.rb

Instance Method Summary collapse

Instance Method Details

#_fork(*args) ⇒ Object



117
118
119
120
121
122
123
124
# File 'lib/litestack/litesupport.rb', line 117

def _fork(*args)
  ppid = Process.pid
  result = super
  if Process.pid != ppid && [:threaded, :iodine].include?(Litescheduler.backend)
    ForkListener.listeners.each { |l| l.call }
  end
  result
end