summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-27 22:05:16 +0000
committerCarl Hetherington <cth@carlh.net>2019-02-27 22:05:16 +0000
commit591f08a6d0be35b2fc015b3a2e4aeb484b8b62bd (patch)
tree09fc90ecbb7d1c964724af63221bf0c108949ec7
parent9bbeb511d23c5aa319da406ec39382fdeddd04ea (diff)
swaroop: try fflush() as well as fsync().v2.13.122
-rw-r--r--src/wx/swaroop_controls.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc
index 622e943c2..78419a08c 100644
--- a/src/wx/swaroop_controls.cc
+++ b/src/wx/swaroop_controls.cc
@@ -167,6 +167,7 @@ SwaroopControls::viewer_position_changed ()
checked_fwrite (p.c_str(), p.length(), f, Config::path("position"));
#ifdef DCPOMATIC_LINUX
+ fflush (f);
fsync (fileno(f));
#endif
fclose (f);