Fflush here too before pwriting

This commit is contained in:
Erica Fischer
2024-07-30 15:36:45 -07:00
parent 8f3819dd95
commit 6489aa7f31
+1
View File
@@ -2231,6 +2231,7 @@ std::pair<int, metadata> read_input(std::vector<source> &sources, char *fname, i
serialize_ulong_long(geomfile, 0, &geompos, fname); // EOF
estimated_complexity = geompos;
fflush(geomfile);
pwrite(fileno(geomfile), &estimated_complexity, sizeof(estimated_complexity), 0);
if (fclose(geomfile) != 0) {