[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23539: tail -f file name headings displayed too many times after sus
From: |
Janne Snabb |
Subject: |
bug#23539: tail -f file name headings displayed too many times after suspend |
Date: |
Sun, 15 May 2016 02:06:02 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
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
address@hidden
tail-f-inotify-excess-header-output.patch
Description: Text Data