|author||Tobias Klauser <firstname.lastname@example.org>||2007-01-22 22:48:06 +0100|
|committer||Tobias Klauser <email@example.com>||2007-01-22 22:48:06 +0100|
inotail.c: Set new file size _after_ read/write in handle_inotify_event()
This works around the problem when receving multiple inotify events for _one_ write to the file. This was a problem in the bordercase where the string written to the file was larger than 4096 chars, the last sizeof(string) - 4096 chars were repeated. Still have to check why there are _two_ IN_MODIFY events for _one_ write. But at least it does not affect inotail anymore. Also fix a dumb thinko in watch_files(): Move the ev_idx only one event forward, not n_files * INOTIFY_BUFLEN.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions