diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-02-14 15:25:14 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-02-14 15:25:14 +0000 |
| commit | 1e62cf13bc31aa9c13fcc6c2738a6012e3e7ce99 (patch) | |
| tree | 70cd73ffddf61b6d9f06dca2c6d89617c80240c3 /src | |
| parent | 125504b5ab15d6b5a7e9b616accd727eaf5b2627 (diff) | |
swaroop: put fsync in the right place.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/swaroop_controls.cc | 6 |
1 files 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<string>(_viewer->position().get()); checked_fwrite (p.c_str(), p.length(), f, Config::path("position")); +#ifdef DCPOMATIC_LINUX + fsync (fileno(f)); +#endif fclose (f); } } |
