mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
add prctl separately
This commit is contained in:
parent
35b407ff60
commit
de91e8fa18
1 changed files with 10 additions and 0 deletions
10
lib/logstash/util/prctl.rb
Normal file
10
lib/logstash/util/prctl.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
module LibC
|
||||
require "ffi"
|
||||
extend FFI::Library
|
||||
ffi_lib 'c'
|
||||
|
||||
# Ok so the 2nd arg isn't really a string... but whaatever
|
||||
attach_function :prctl, [:int, :string, :long, :long, :long], :int
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue