]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: flush initial output before possibly blocking
authorJim Meyering <meyering@redhat.com>
Sun, 6 Sep 2009 07:39:31 +0000 (09:39 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 6 Sep 2009 07:40:43 +0000 (09:40 +0200)
commitd54376db68adf655b5f09855442b2983fc2f4f3e
tree957e98a9660c3dee1af27a3300aa4d451732731b
parentaf054f80b24d1ed3ac0cb9c4593eac5f0a3c5788
tail: flush initial output before possibly blocking

* src/tail.c (main): Flush any output from tail_file,
before calling tail_forever_inotify, which can block.
* tests/tail-2/flush-initial: New file.  Test for the bug.
* tests/Makefile.am (TESTS): Add tail-2/flush-initial.
* NEWS (Bug fixes): Mention it.
This bug was introduced in coreutils-7.5 via commit ae494d4b,
2009-06-02, "tail: use inotify if it is available".
NEWS
src/tail.c
tests/Makefile.am
tests/tail-2/flush-initial [new file with mode: 0755]