From 555e6044cadcf691e29d9b0410c7d995ed2b0952 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 28 Apr 2014 14:51:59 -0700 Subject: [PATCH] fix for the failing test case (parent commit) --- tail.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tail.go b/tail.go index 34ef4cc..8d87d32 100644 --- a/tail.go +++ b/tail.go @@ -236,6 +236,8 @@ func (tail *Tail) tailFileSync() { tail.Killf("Seek error on %s: %s", tail.Filename, err) return } + // Reset the read buffer whenever the file is re-seek'ed + tail.reader.Reset(tail.file) } } case io.EOF: