Skip to content

Instantly share code, notes, and snippets.

@eam
Created December 10, 2015 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eam/20f04e1aa17bab8c3775 to your computer and use it in GitHub Desktop.
Save eam/20f04e1aa17bab8c3775 to your computer and use it in GitHub Desktop.
#!/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