We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517cb79 commit b4143c2Copy full SHA for b4143c2
1 file changed
tail.go
@@ -391,12 +391,14 @@ func (tail *Tail) waitForChanges() error {
391
}
392
393
func (tail *Tail) openReader() {
394
+ tail.lk.Lock()
395
if tail.MaxLineSize > 0 {
396
// add 2 to account for newline characters
397
tail.reader = bufio.NewReaderSize(tail.file, tail.MaxLineSize+2)
398
} else {
399
tail.reader = bufio.NewReader(tail.file)
400
401
+ tail.lk.Unlock()
402
403
404
func (tail *Tail) seekEnd() error {
0 commit comments