]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: document a caveat in the tail inotify implementation
authorPádraig Brady <P@draigBrady.com>
Thu, 5 Feb 2015 13:59:12 +0000 (13:59 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 6 Feb 2015 10:42:11 +0000 (10:42 +0000)
* src/tail.c (main): Document another caveat with the
inotify implementation wrt multiple hardlinked files.

src/tail.c

index 5fdb956c648bd8af9e15273767bde1e4ff1d767f..c5380cbe8efa056482dd357c6456fe67a431d3da 100644 (file)
@@ -2265,7 +2265,11 @@ main (int argc, char **argv)
 
          FIXME: when using inotify, and a directory for a watched file
          is recreated, then we don't recheck any new file when
-         follow_mode == Follow_name  */
+         follow_mode == Follow_name.
+
+         FIXME-maybe: inotify has a watch descriptor per inode, and hence with
+         our current hash implementation will only --follow data for one
+         of the names when multiple hardlinked files are specified.  */
       if (!disable_inotify && (tailable_stdin (F, n_files)
                                || any_remote_file (F, n_files)
                                || any_symlinks (F, n_files)