]> git.ipfire.org Git - thirdparty/git.git/commit - run-command.c
run_processes_parallel: treat output of children as byte array
authorStefan Beller <sbeller@google.com>
Tue, 1 Mar 2016 02:07:15 +0000 (18:07 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Mar 2016 19:57:19 +0000 (11:57 -0800)
commit2dac9b5637abe580e8b8ea36e00dbbf28ec99af6
tree57b46bdae2fad445c5d06538e7bae6b4de59f16c
parent8c6b5491182510f2344dae71784fcb5c3992d005
run_processes_parallel: treat output of children as byte array

We do not want the output to be interrupted by a NUL byte, so we
cannot use raw fputs. Introduce strbuf_write to avoid having long
arguments in run-command.c.

Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c
strbuf.c
strbuf.h