Skip to content

Commit

Permalink
Don't leak pipes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 19, 2023
1 parent e8c9f72 commit 602284e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_thread_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ def test_thr_kill
total_count = 250
begin
assert_normal_exit(<<-"_eom", bug5343, timeout: timeout, chdir: d)
r, w = IO.pipe
#{total_count}.times do |i|
File.open("test_thr_kill_count", "w") {|f| f.puts i }
queue = Thread::Queue.new
r, w = IO.pipe
th = Thread.start {
queue.push(nil)
r.read 1
Expand Down

0 comments on commit 602284e

Please sign in to comment.