From b1e9b45e67a01f71d2445d6165b50f2563ea8d99 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Thu, 9 Sep 2021 16:52:40 +0900 Subject: [PATCH] in_tail: Add missing nil check in IOHandler#eof? In addition, NullIOHandler didn't have eof?. Signed-off-by: Takuro Ashie --- lib/fluent/plugin/in_tail.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/fluent/plugin/in_tail.rb b/lib/fluent/plugin/in_tail.rb index a392180e1d..b4e3a56dc1 100644 --- a/lib/fluent/plugin/in_tail.rb +++ b/lib/fluent/plugin/in_tail.rb @@ -762,7 +762,7 @@ def close end def eof? - @io_handler.eof? + @io_handler.nil? || @io_handler.eof? end def on_notify @@ -1111,6 +1111,10 @@ def close def opened? false end + + def eof? + true + end end class RotateHandler