Skip to content

Instantly share code, notes, and snippets.

@hwatkins
Created December 8, 2010 18:31
Show Gist options
  • Save hwatkins/733679 to your computer and use it in GitHub Desktop.
Save hwatkins/733679 to your computer and use it in GitHub Desktop.
Test case for Broken pipe in ruby libvirt
require "libvirt"
def nested
puts "nested"
h = Libvirt.connect
h.domains.each do |d|
puts "Domain: #{d.name}"
end
end
1.upto(20).each do |x|
puts "main #{x}"
h = Libvirt.connect
h.domains.each do |d|
puts "Domain: #{d.name}"
puts
end
nested
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment