Module: FFI::LegacyForkTracking::IOExt

Included in:
FFI
Defined in:
lib/ffi/ffi.rb

Instance Method Summary collapse

Instance Method Details

#popen(*args) ⇒ Object



85
86
87
88
89
90
91
92
# File 'lib/ffi/ffi.rb', line 85

def popen(*args)
  return super unless args[0] == '-'

  super(*args) do |pipe|
    FFI._async_cb_dispatcher_atfork_child if pipe.nil?
    yield pipe
  end
end