module FFI::LegacyForkTracking::KernelExt

Private Instance Methods

fork() { || ... } click to toggle source
Calls superclass method
# File lib/ffi/ffi.rb, line 65
def fork
  if block_given?
    super do
      FFI._async_cb_dispatcher_atfork_child
      yield
    end
  else
    pid = super
    FFI._async_cb_dispatcher_atfork_child if pid.nil?
    pid
  end
end