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

Use pipe instead of $stdin.read.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-12-14 05:42:34 +00:00
parent 50c1985555
commit 8fbf055e33

View file

@ -690,7 +690,7 @@ class TestThreadGroup < Test::Unit::TestCase
def test_thread_timer_and_interrupt
bug5757 = '[ruby-dev:44985]'
t0 = Time.now.to_f
pid = spawn(EnvUtil.rubybin, '-e', '$stdin.read')
pid = spawn(EnvUtil.rubybin, '-e', 'r,=IO.pipe;r.read')
sleep 1;
Process.kill(:SIGQUIT, pid)
Process.wait(pid)