Skip to content

Commit

Permalink
Merge pull request #3500 from ashie/issue3499
Browse files Browse the repository at this point in the history
in_tail: Add missing nil check in IOHandler#eof?
  • Loading branch information
ashie committed Sep 10, 2021
2 parents d671043 + b1e9b45 commit b8e3da9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fluent/plugin/in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def close
end

def eof?
@io_handler.eof?
@io_handler.nil? || @io_handler.eof?
end

def on_notify
Expand Down Expand Up @@ -1111,6 +1111,10 @@ def close
def opened?
false
end

def eof?
true
end
end

class RotateHandler
Expand Down

0 comments on commit b8e3da9

Please sign in to comment.