GNU bug report logs - #23539
tail -f file name headings displayed too many times after suspend

Previous Next

Package: coreutils;

Reported by: Janne Snabb <snabb <at> epipe.com>

Date: Sat, 14 May 2016 22:16:02 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Janne Snabb <snabb <at> epipe.com>
To: 23539 <at> debbugs.gnu.org
Subject: bug#23539: tail -f file name headings displayed too many times after suspend
Date: Sun, 15 May 2016 02:06:02 +0300
[Message part 1 (text/plain, inline)]
The attached patch fixes this bug for me.

The patch moves the write_header() call in the inotify case to
dump_remainder() where write_header() is called only if some file
content is going to be output.

I am not sure if this is the best approach. Another approach would be to
change the inotify event handling so that all queued events are read at
once and duplicates are eliminated before acting on them. Now it reads
and acts on them one.

-- 
Janne Snabb
snabb <at> epipe.com
[tail-f-inotify-excess-header-output.patch (text/x-patch, attachment)]

This bug report was last modified 6 years and 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.