Skip to content

Commit

Permalink
Merge pull request ninja-build#1361 from ppluciennik/ppluciennik/flus…
Browse files Browse the repository at this point in the history
…h_log

Flush changes into .ninja_log right away.
  • Loading branch information
nico committed Apr 5, 2018
2 parents 74b76d3 + c1c8bba commit 5d43e74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/build_log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ bool BuildLog::RecordCommand(Edge* edge, int start_time, int end_time,
if (log_file_) {
if (!WriteEntry(log_file_, *log_entry))
return false;
if (fflush(log_file_) != 0) {
return false;
}
}
}
return true;
Expand Down

0 comments on commit 5d43e74

Please sign in to comment.