Module: Spoon
- Extended by:
- FFI::Library
- Defined in:
- lib/raad/spoon.rb
Overview
spoon code taken from Charles Oliver Nutter’s spoon gem github.com/headius/spoon also see blog.headius.com/2009/05/fork-and-exec-on-jvm-jruby-to-rescue.html
Class Method Summary collapse
Class Method Details
.spawn(*args) ⇒ Object
19 20 21 22 23 |
# File 'lib/raad/spoon.rb', line 19 def self.spawn(*args) spawn_args = _prepare_spawn_args(args) _posix_spawn(*spawn_args) spawn_args[0].read_int end |
.spawnp(*args) ⇒ Object
25 26 27 28 29 |
# File 'lib/raad/spoon.rb', line 25 def self.spawnp(*args) spawn_args = _prepare_spawn_args(args) _posix_spawnp(*spawn_args) spawn_args[0].read_int end |