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:
parent
50c1985555
commit
8fbf055e33
@ -690,7 +690,7 @@ class TestThreadGroup < Test::Unit::TestCase
|
|||||||
def test_thread_timer_and_interrupt
|
def test_thread_timer_and_interrupt
|
||||||
bug5757 = '[ruby-dev:44985]'
|
bug5757 = '[ruby-dev:44985]'
|
||||||
t0 = Time.now.to_f
|
t0 = Time.now.to_f
|
||||||
pid = spawn(EnvUtil.rubybin, '-e', '$stdin.read')
|
pid = spawn(EnvUtil.rubybin, '-e', 'r,=IO.pipe;r.read')
|
||||||
sleep 1;
|
sleep 1;
|
||||||
Process.kill(:SIGQUIT, pid)
|
Process.kill(:SIGQUIT, pid)
|
||||||
Process.wait(pid)
|
Process.wait(pid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user