Created
February 22, 2012 15:10
-
-
Save hiboma/1885475 to your computer and use it in GitHub Desktop.
FFIでLXCをbindする - great
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ffi' | |
module LXC | |
extend FFI::Library | |
ffi_lib "/usr/local/lxc/lib/liblxc.so" | |
attach_function :lxc_stop, [ :string ], :int | |
end | |
puts LXC::lxc_stop(ARGV[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lxc_attachが動かないのは
ざっくり。