swaroop: try fflush() as well as fsync(). v2.13.122
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Feb 2019 22:05:16 +0000 (22:05 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 27 Feb 2019 22:05:16 +0000 (22:05 +0000)
src/wx/swaroop_controls.cc

index 622e943c2015ceb52afea32bfbc5997add4dc4d9..78419a08c3b8e0ef08ca0bf017b61ebf5e71c59f 100644 (file)
@@ -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);