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:
parent
50c1985555
commit
8fbf055e33
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue