Project

General

Profile

Bug #11166 ยป 2.rb

cvss (Kirill Vechera), 05/21/2015 04:44 PM

 
require 'thread'

1000000.times do |i|
puts "loop: #{i}"
t = Thread.new {
system('/nonexistent')
puts "done"
sleep
}

sleep 0.000001

t.kill
t.join
# hang up forever on join if thread can't respond to kill
end
    (1-1/1)