Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Aug 2, 2023
1 parent 4a59e59 commit e3a005d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pitchfork/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def close_all_ios!
ignored_ios << (io_like.is_a?(IO) ? io_like : io_like.to_io)
end

p [:ingored, *ignored_ios]

ObjectSpace.each_object(IO) do |io|
closed = begin
io.closed?
Expand Down
1 change: 1 addition & 0 deletions test/unit/test_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def test_close_all_ios_except_marked_ones
Pitchfork::Info.keep_io(w)

pid = Process.fork do
p [:w, w]
Pitchfork::Info.close_all_ios!

w.write(Marshal.dump([
Expand Down

0 comments on commit e3a005d

Please sign in to comment.