Module: Prctl

Defined in:
lib/dapp/prctl.rb

Constant Summary collapse

PR_SET_PDEATHSIG =
1

Class Method Summary collapse

Class Method Details

._fiddle_funcObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/dapp/prctl.rb', line 5

def _fiddle_func
  require 'fiddle'
  @_fiddle_func ||= Fiddle::Function.new(
    Fiddle::Handle['prctl'.freeze], [
      Fiddle::TYPE_INT,
      Fiddle::TYPE_LONG,
      Fiddle::TYPE_LONG,
      Fiddle::TYPE_LONG,
      Fiddle::TYPE_LONG
    ], Fiddle::TYPE_INT
  )
end

.call(*a) ⇒ Object



18
19
20
# File 'lib/dapp/prctl.rb', line 18

def call(*a)
  _fiddle_func.call(*a)
end