From: Carl Hetherington Date: Wed, 6 Feb 2019 22:55:45 +0000 (+0000) Subject: swaroop: speculative fix for non-recovery after power-off. X-Git-Tag: v2.13.114~2 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=3dff622252d0cb84b506dd220773541c7da40be2;p=dcpomatic.git swaroop: speculative fix for non-recovery after power-off. --- diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc index aa3a095ec..12c843417 100644 --- a/src/wx/swaroop_controls.cc +++ b/src/wx/swaroop_controls.cc @@ -144,6 +144,9 @@ SwaroopControls::check_restart () } } +#ifdef DCPOMATIC_LINUX + fsync (fileno(f)); +#endif DCPOMATIC_LINUX fclose (f); }