Commit 52580c03 authored by Michael Tremer's avatar Michael Tremer

writer: Flush everything to disk after writing finishes

This might solve a race in the testsuite.
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent e2dd6428
......@@ -753,5 +753,8 @@ LOC_EXPORT int loc_writer_write(struct loc_writer* writer, FILE* f, enum loc_dat
fwrite(&header, 1, sizeof(header), f);
// Flush everything
fflush(f);
return r;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment