module FFI::LegacyForkTracking::IOExt

Public Instance Methods

popen(*args) { |pipe| ... } click to toggle source
Calls superclass method
# 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