all repos — fluxbox @ 4bad431c90c72c945d9ce7053775d66be1e563ca

custom fork of the fluxbox windowmanager

main.cc: Only sync() if we can.
Ryan Pavlik rpavlik@iastate.edu
commit

4bad431c90c72c945d9ce7053775d66be1e563ca

parent

97b48ccb12a56512a7267462750cff3f18faa715

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/main.ccsrc/main.cc

@@ -373,10 +373,11 @@ FbTk::FileUtil::copyFile(cfiles[i].default_name, cfiles[i].filename.c_str());

sync_fs = true; } } - +#ifdef HAVE_SYNC if (sync_fs) { sync(); } +#endif }

@@ -413,7 +414,9 @@ fbdbg << "running '"

<< commandargs << "' failed." << endl; } +#ifdef HAVE_SYNC sync(); +#endif // HAVE_SYNC } }