diff options
author | Tobias Klauser <klto@zhaw.ch> | 2009-10-30 17:18:24 +0100 |
---|---|---|
committer | Tobias Klauser <klto@zhaw.ch> | 2009-10-30 17:18:24 +0100 |
commit | dd59f4f38a9e6454d8413ba38fc6d8114954ad72 (patch) | |
tree | 40cc818e3ca2338234cdf40ee9aacc319883150f | |
parent | 727e55497fa03e9312c1e73bea005233aa03c8d6 (diff) |
inotail.c: Add TODO comment to handle_inotify_event
Reopening the watch should only be done in FOLLOW_NAME mode.
-rw-r--r-- | inotail.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -676,6 +676,10 @@ static int handle_inotify_event(int ifd, struct inotify_event *inev, struct file else fprintf(stderr, "File '%s' moved.\n", f->name); + /* TODO: This should only be done in FOLLOW_NAME mode, also we + * should watch the containing directory until the file + * reappears and only then try to install the new watch + */ f->i_watch = inotify_add_watch(ifd, f->name, INOTAIL_WATCH_MASK); if (f->i_watch < 0) { fprintf(stderr, "Error: Could not create inotify watch on file '%s' (%s)\n", |