Last active
August 29, 2015 16:14
-
-
Save ubermajestix/15307 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 '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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like this got fixed in Ruby 1.9.3