diff --git a/src/utils/shared_files.cc b/src/utils/shared_files.cc index 674a1c2e..765c859e 100644 --- a/src/utils/shared_files.cc +++ b/src/utils/shared_files.cc @@ -234,6 +234,7 @@ bool SharedFiles::write(const std::string& fileName, error->assign("failed to write: " + fileName); ret = false; } + fflush(a.second); pthread_mutex_unlock(&a.first->lock); return ret;