aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index c47e1d8..aab583f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -373,10 +373,11 @@ void setupConfigFiles(const std::string& dirname, const std::string& rc) {
373 sync_fs = true; 373 sync_fs = true;
374 } 374 }
375 } 375 }
376 376#ifdef HAVE_SYNC
377 if (sync_fs) { 377 if (sync_fs) {
378 sync(); 378 sync();
379 } 379 }
380#endif
380} 381}
381 382
382 383
@@ -413,7 +414,9 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) {
413 << commandargs 414 << commandargs
414 << "' failed." << endl; 415 << "' failed." << endl;
415 } 416 }
417#ifdef HAVE_SYNC
416 sync(); 418 sync();
419#endif // HAVE_SYNC
417 } 420 }
418} 421}
419 422