summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-02-05 13:59:12 +0000
committerPádraig Brady <P@draigBrady.com>2015-02-06 10:42:11 +0000
commit0f7ca66bc5d467c50c3df341f7f18bef689f8247 (patch)
treed2a8a021e80ee09b3a67e4ccddf0ac9432fe9fc5 /src
parent235d52c3eaf2c8f6dd6eadb45ac458e71d3afc75 (diff)
downloadcoreutils-0f7ca66bc5d467c50c3df341f7f18bef689f8247.tar.xz
maint: document a caveat in the tail inotify implementation
* src/tail.c (main): Document another caveat with the inotify implementation wrt multiple hardlinked files.
Diffstat (limited to 'src')
-rw-r--r--src/tail.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index 5fdb956c6..c5380cbe8 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -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)