Add support for per-job output sync.
authorPaul Smith <psmith@gnu.org>
Sun, 28 Apr 2013 05:19:19 +0000 (01:19 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 28 Apr 2013 05:19:19 +0000 (01:19 -0400)
commit7f01830927969a8386050617385e59070fe9f34b
treeb211c33f53be418ea4bf051b503aea10607f6d49
parent30843dea3a17f84b7456f68d75e5cd6bd5c5e11b
Add support for per-job output sync.

A new flag to the -O/--output-sync, "job", selects a per-job (that is, per
line of a recipe) output synchronization.  To support this move the close of
the temp file out of the sync_output() function and don't do it until we free
the child, since we may call sync_output() multiple times in a given recipe.
When we set up for a new temp file, if we're in per-job mode we truncate the
file and seek to the beginning to re-use it for every job.
AUTHORS
ChangeLog
NEWS
doc/make.texi
job.c
job.h
main.c
make.1
makeint.h
tests/ChangeLog
tests/scripts/features/output-sync