123456789_123456789_123456789_123456789_123456789_

Module: FFI::LegacyForkTracking::KernelExt

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/ffi/ffi.rb

Instance Method Summary

Instance Method Details

#fork

[ GitHub ]

  
# 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