mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
src: add fflush() to SnapshotData::ToFile()
Refs: https://github.com/nodejs/node/pull/46491#discussion_r1097610165 PR-URL: https://github.com/nodejs/node/pull/46531 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
85c8b78104
commit
5092346439
1 changed files with 1 additions and 0 deletions
|
@ -866,6 +866,7 @@ void SnapshotData::ToFile(FILE* out) const {
|
|||
const std::vector<char> sink = ToBlob();
|
||||
size_t num_written = fwrite(sink.data(), sink.size(), 1, out);
|
||||
CHECK_EQ(num_written, 1);
|
||||
CHECK_EQ(fflush(out), 0);
|
||||
}
|
||||
|
||||
const SnapshotData* SnapshotData::FromEmbedderWrapper(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue