Method: ChildProcess::Unix::Lib::FileActions#initialize

Defined in:
lib/childprocess/unix/lib.rb

#initializeFileActions

Returns a new instance of FileActions.



100
101
102
103
# File 'lib/childprocess/unix/lib.rb', line 100

def initialize
  @ptr = FFI::MemoryPointer.new(1, Platform::SIZEOF.fetch(:posix_spawn_file_actions_t), false)
  Lib.check Lib.posix_spawn_file_actions_init(@ptr)
end