aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2011-10-28 17:15:48 (GMT)
committerRyan Pavlik <rpavlik@iastate.edu>2011-10-31 15:42:06 (GMT)
commit4bad431c90c72c945d9ce7053775d66be1e563ca (patch)
tree3f7deee578d9021ed698fe74b164a1197956a981
parent97b48ccb12a56512a7267462750cff3f18faa715 (diff)
downloadfluxbox_paul-4bad431c90c72c945d9ce7053775d66be1e563ca.zip
fluxbox_paul-4bad431c90c72c945d9ce7053775d66be1e563ca.tar.bz2
main.cc: Only sync() if we can.
-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