123456789_123456789_123456789_123456789_123456789_

Module: Puma::JRubyRestart

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, FFI::Library
Defined in: lib/puma/jruby_restart.rb

Class Method Summary

Class Method Details

.chdir_exec(dir, argv)

Raises:

  • (SystemCallError)
[ GitHub ]

  
# File 'lib/puma/jruby_restart.rb', line 16

def self.chdir_exec(dir, argv)
  chdir(dir)
  cmd = argv.first
  argv = ([:string] * argv.size).zip(argv)
  argv.flatten!
  argv << :string
  argv << nil
  execlp(cmd, *argv)
  raise SystemCallError.new(FFI.errno)
end