* NEWS: Mention the bug fix.
* src/tail.c (tail_forever_inotify): With --pid, avoid waiting
for new events if there are still events to process.
* tests/tail-2/inotify-dir-recreate.sh: Adjust to trigger.
tail -F 'dir/file' is now monitored even when 'dir' is replaced.
[bug introduced with inotify support added in coreutils-7.5]
+ tail -f with --pid=PID will now process all inotify events.
+ Previously events may have been ignored completely upon PID death,
+ or ignored until future events on the monitored files.
+ [bug introduced with inotify support added in coreutils-7.5]
+
uptime no longer outputs the AM/PM component of the current time,
as that's inconsistent with the 24 hour time format used.
[bug introduced in coreutils-7.0]
/* When watching a PID, ensure that a read from WD will not block
indefinitely. */
- if (pid)
+ if (pid && (len <= evbuf_off))
{
if (writer_is_dead)
exit (EXIT_SUCCESS);
mkdir dir && echo 'inotify' > dir/file || framework_failure_
#tail must print content of the file to stdout, verify
-timeout 60 tail -F dir/file >out 2>&1 & pid=$!
+timeout 60 tail --pid=$$ -F dir/file >out 2>&1 & pid=$!
grep_timeout_ 'inotify' 'out' ||
{ cleanup_fail_ 'file to be tailed does not exist'; }