Created
December 10, 2015 01:38
-
-
Save eam/20f04e1aa17bab8c3775 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
require 'ffi' | |
module C | |
extend FFI::Library | |
ffi_lib 'c' | |
attach_function 'sleep', [:int], :int | |
end | |
puts "kill -SIGINT #$$" | |
C.sleep 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment