Skip to content

Instantly share code, notes, and snippets.

@syrnick
Forked from KirinDave/family.rb
Created July 9, 2011 18:20
Show Gist options
  • Save syrnick/1073818 to your computer and use it in GitHub Desktop.
Save syrnick/1073818 to your computer and use it in GitHub Desktop.
Thread.abort_on_exception = true
Thread.new {
sleep(1)
$stderr.puts ">> Baby threw up."
raise "Barf."
}
$stderr.puts ">> Mommy is listening to the monitor, but she is also drunk."
sleep(5)
$stderr.puts ">> Mommy never woke up."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment