module Puma::JRubyRestart

def self.chdir_exec(dir, argv)

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