Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31fb2e2

Browse filesBrowse files
addaleaxMylesBorins
authored andcommitted
src: add fflush() to SnapshotData::ToFile()
Refs: #46491 (comment) PR-URL: #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>
1 parent da9ebaf commit 31fb2e2
Copy full SHA for 31fb2e2

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Collapse file

‎src/node_snapshotable.cc‎

Copy file name to clipboardExpand all lines: src/node_snapshotable.cc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,7 @@ void SnapshotData::ToFile(FILE* out) const {
866866
const std::vector<char> sink = ToBlob();
867867
size_t num_written = fwrite(sink.data(), sink.size(), 1, out);
868868
CHECK_EQ(num_written, 1);
869+
CHECK_EQ(fflush(out), 0);
869870
}
870871

871872
const SnapshotData* SnapshotData::FromEmbedderWrapper(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.