Method: ChildProcess::Unix::Lib.check

Defined in:
lib/childprocess/unix/lib.rb

.check(errno) ⇒ Object



93
94
95
96
97
# File 'lib/childprocess/unix/lib.rb', line 93

def self.check(errno)
  if errno != 0
    raise Error, Lib.strerror(FFI.errno)
  end
end