]> git.ipfire.org Git - thirdparty/make.git/commit
Avoid interleaved $(info ) output
authorPaul Smith <psmith@gnu.org>
Wed, 19 Jan 2022 23:49:19 +0000 (15:49 -0800)
committerPaul Smith <psmith@gnu.org>
Sun, 6 Feb 2022 23:46:32 +0000 (18:46 -0500)
commit5f2d114c6d7d896f3bb604e12798372e3fc3e43b
tree8cd6ed4f736483cba64e8299ce08a500dc60777b
parentcbe0d2e47f9f149ef9937358ba3a82c043e36175
Avoid interleaved $(info ) output

Since $(info ) function output is written using two system calls for
the message and the newline, it's possible for output from another
parallel make job to sneak in between them.

Reported by Paul Eggert <eggert@cs.ucla.edu>, who saw the report from
Lars Ingebrigtsen <https://bugs.gnu.org/53358>.

* src/function.c (func_error): Paul provided a fix but instead I
rewrote the entire function: it's not possible for it to be invoked
with anything other than exactly one argument so don't worry about
re-combining the arguments.
src/function.c