bgreenlee / pygtail

Pygtail reads log file lines that have not been read. It will even handle log files that have been rotated. Based on logcheck's logtail2 (http://logcheck.org)
GNU General Public License v2.0
251 stars 79 forks source link

Fix race condition in `_update_offset_file()` #58

Closed ilyalabun closed 2 years ago

ilyalabun commented 4 years ago

When file rotation happens during tailing _update_offset_file writes inode of a new file instead of old one but offset is taken from the old file

bgreenlee commented 2 years ago

Thanks for this. Sorry it took me so long to get around to it.

ilyalabun commented 2 years ago

Thanks for merging this MR @bgreenlee!