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