Merge pull request #1361 from ppluciennik/ppluciennik/flush_log

Flush changes into .ninja_log right away.
This commit is contained in:
Nico Weber 2018-04-05 12:12:02 -04:00 committed by GitHub
commit 5d43e74571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;