diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 5aad1d52fb..b314b7f38a 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1925,8 +1925,9 @@ EOS begin $stderr.reopen($stdout) trap(:QUIT) {} + parent = $$ 100.times do |i| - pid = fork {Process.kill(:QUIT, Process.ppid)} + pid = fork {Process.kill(:QUIT, parent)} IO.popen(ruby, 'r+'){} Process.wait(pid) $stdout.puts |