Skip to content

Instantly share code, notes, and snippets.

@ubermajestix
Last active August 29, 2015 16:14
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 ubermajestix/15307 to your computer and use it in GitHub Desktop.
Save ubermajestix/15307 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'logger'
logger = Logger.new($stdout)
begin
# let's do something that will never exit
# and then we can watch this not die unless we use kill -9
while 2 > 1
logger.info "this is never going to exit!!!"
sleep 1
end
rescue Exception => e
logger.info e.inspect
end
@ubermajestix
Copy link
Author

Seems like this got fixed in Ruby 1.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment