1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

don't use infinite loop.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-02-22 12:34:54 +00:00
parent b551e8c8b3
commit 29860b0bbb

View file

@ -97,8 +97,8 @@ EOW
out = IO.popen(
[ruby,
'-e', 'STDERR.reopen(STDOUT)',
'-e', 'at_exit{Process.kill(:INT, $$); loop{}}']) {|f|
timeout(1) {
'-e', 'at_exit{Process.kill(:INT, $$); sleep 5 }']) {|f|
timeout(10) {
f.read
}
}