Module: Puma::JRubyRestart
- Extended by:
- FFI::Library
- Defined in:
- lib/puma/jruby_restart.rb
Class Method Summary collapse
Class Method Details
.chdir_exec(dir, argv) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# 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).flatten argv << :string argv << nil execlp(cmd, *argv) raise SystemCallError.new(FFI.errno) end |