On 24/09/2026 22:37, Thomas Klausner wrote:
Hmm NetBSD doesn't use inotify, so it's tail_forever() might not flush output before blocking in the the single fifo case. Thomas does this help at all?diff --git a/src/tail.c b/src/tail.c index 2ca27e835..4f144a60f 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1177,6 +1177,10 @@ tail_forever (struct File_spec *f, int n_files, double sleep_interval) static bool debugged; + /* Flush initial output as we might block reading a FIFO. */ + if (fflush (stdout) < 0) + write_error (); + while (true) { /* Use blocking I/O as an optimization, when it's easy. */Here too -- with the patch the test failure is gone.
I've just pushed that at: https://github.com/coreutils/coreutils/commit/49efaeaaa Thanks for testing. Padraig
