Module: FFI::LegacyForkTracking::KernelExt
- Included in:
- FFI, KernelExtPrivate
- Defined in:
- lib/ffi/ffi.rb
Instance Method Summary collapse
Instance Method Details
#fork ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 |
# 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 |