From 4d2d6c5b7c455392617609ae21b6b21879e12975 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Wed, 15 Oct 2014 02:18:35 +0100 Subject: factor: avoid interspersed lines for parallel runs * src/factor.c (n_out): A new global variable to track how much data has been written to stdout. (print_factors_single): Use n_out to determine whether to flush the current (and previous) lines. * tests/misc/factor-parallel.sh: Add a new test. * tests/local.mk: Reference the new test. * NEWS: Mention the bug fix. --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 99a930133..9aa35aded 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,9 @@ GNU coreutils NEWS -*- outline -*- file types, a warning is issued for source directories with duplicate names, or with -H the directory is copied again using the symlink name. + factor avoids writing partial lines, thus supporting parallel operation. + [the bug dates back to the initial implementation] + head, od, split, tac, tail, and wc no longer mishandle input from files in /proc and /sys file systems that report somewhat-incorrect file sizes. -- cgit v1.2.3-70-g09d2