mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
This was seen with a NetBSD failure in the pipe-f2.sh test due to it clearing the EOF indication on a fifo, and thus blocking in the subsequent read. That was discussed at: https://lists.gnu.org/r/coreutils/2026-04/msg00129.html https://bugs.gnu.org/81923 Note the NetBSD issue may be addressed in NetBSD 12 as discussed in the bug above. This is more defensive/consistent in the case where a subsequent read on a file blocks. We might be operating on non fifos after all. * src/tail.c (tail_forever): Flush output before we might block. * tests/tail/pipe-f2.sh: Test non inotify path on all platforms. * NEWS: Mention the improvement.