summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-01-22 22:48:06 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-01-22 22:48:06 +0100
commit80cfa2981cb825fbe5200db25061fa8507652ee3 (patch)
treec8902a2c18776beeece4f019f061c18214d8631f /inotail.h
parent81e87451a835c3d759075c7876a865ea77bcc1b0 (diff)
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 'inotail.h')
0 files changed, 0 insertions, 0 deletions