]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: avoid interspersed lines for parallel runs
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Oct 2014 01:18:35 +0000 (02:18 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 24 Jun 2015 16:04:01 +0000 (17:04 +0100)
commit4d2d6c5b7c455392617609ae21b6b21879e12975
tree61a3dc20fc98a7387703622e2ab986c946f7f079
parent32c97093db85c827ccbbf4cd4255190718863232
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
src/factor.c
tests/local.mk
tests/misc/factor-parallel.sh [new file with mode: 0755]