Methods

Puma::JRubyRestart

Public Class Methods

chdir_exec(dir, cmd, *argv) click to toggle source
# File lib/puma/jruby_restart.rb, line 11
def self.chdir_exec(dir, cmd, *argv)
  chdir(dir)
  argv.unshift(cmd)
  argv = ([:string] * argv.size).zip(argv).flatten
  argv <<:int
  argv << 0
  execlp(cmd, *argv)
  raise SystemCallError.new(FFI.errno)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.