From 1e62cf13bc31aa9c13fcc6c2738a6012e3e7ce99 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 14 Feb 2019 15:25:14 +0000 Subject: [PATCH] swaroop: put fsync in the right place. --- src/wx/swaroop_controls.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc index b2b1a2bda..abf6fc58c 100644 --- a/src/wx/swaroop_controls.cc +++ b/src/wx/swaroop_controls.cc @@ -144,9 +144,6 @@ SwaroopControls::check_restart () } } -#ifdef DCPOMATIC_LINUX - fsync (fileno(f)); -#endif fclose (f); } @@ -164,6 +161,9 @@ SwaroopControls::viewer_position_changed () + " " + dcp::raw_convert(_viewer->position().get()); checked_fwrite (p.c_str(), p.length(), f, Config::path("position")); +#ifdef DCPOMATIC_LINUX + fsync (fileno(f)); +#endif fclose (f); } } -- 2.30.2