Skip to content

Commit

Permalink
Handle EBADF
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Aug 1, 2023
1 parent 148e747 commit 1b4c372
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pitchfork/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def close_all_ios!
# So we first reopen /dev/null to avoid that.
io.reopen(File::NULL)
end
io.close
begin
io.close
rescue Errno::EBADF
end
end
end
end
Expand Down

0 comments on commit 1b4c372

Please sign in to comment.