Annotation of pkgsrc/sysutils/coreutils/patches/patch-src_tail.c, revision 1.2
1.2 ! wiz 1: $NetBSD: patch-src_tail.c,v 1.1 2026/09/24 21:40:53 wiz Exp $
! 2:
! 3: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81923
1.1 wiz 4:
5: --- src/tail.c.orig 2026-07-31 13:51:12.000000000 +0000
6: +++ src/tail.c
7: @@ -1177,6 +1177,10 @@ tail_forever (struct File_spec *f, int n_files, double
8:
9: static bool debugged;
10:
11: + /* Flush initial output as we might block reading a FIFO. */
12: + if (fflush (stdout) < 0)
13: + write_error ();
14: +
15: while (true)
16: {
17: /* Use blocking I/O as an optimization, when it's easy. */
CVSweb <webmaster@jp.NetBSD.org>