]> git.ipfire.org Git - thirdparty/make.git/commit
Improve sync handling for -Ojob/-Otarget and recursion.
authorPaul Smith <psmith@gnu.org>
Sat, 4 May 2013 17:10:56 +0000 (13:10 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 4 May 2013 17:10:56 +0000 (13:10 -0400)
commitb8467292c9be14b31c028d472107946770ed977e
tree83a4a38f0209303e73e93d03218528e1ba07c366
parentcb2be0db36b9730d9879dec4332141ee4db9377f
Improve sync handling for -Ojob/-Otarget and recursion.

If we are not going to sync a command line then dump any collected output
first to preserve ordering.  Do some code cleanup:
  * Move the handle init to a separate function.
  * Move the temp file truncation to the output function.
  * Remember whether we sync in a variable for readability.
  * Handle EINTR and short writes in child_out().
  * Always call sync_output() in case output_sync was changed due to error.
ChangeLog
job.c
misc.c
tests/ChangeLog
tests/scripts/features/output-sync