class Spoon::SpawnAttributes
Constants
- SIZE
Attributes
pointer[R]
Public Class Methods
new()
click to toggle source
# File lib/spoon/unix.rb, line 58 def initialize @pointer = FFI::AutoPointer.new(LibC.malloc(SIZE), Releaser) error = LibC.posix_spawnattr_init(@pointer) raise SystemCallError.new("posix_spawnattr_init", error) unless error == 0 end
Public Instance Methods
pgroup()
click to toggle source
# File lib/spoon/unix.rb, line 77 def pgroup group = FFI::MemoryPointer.new :pid_t error = LibC.posix_spawnattr_getpgroup(pointer, group) raise SystemCallError.new("posix_spawnattr_getpgroup", error) unless error == 0 get_pid(group) end
pgroup=(group)
click to toggle source
# File lib/spoon/unix.rb, line 71 def pgroup=(group) error = LibC.posix_spawnattr_setpgroup(pointer, group) raise SystemCallError.new("posix_spawnattr_setpgroup", error) unless error == 0 group end