diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-04-06 11:49:04 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-04-06 11:49:04 +0200 |
commit | cb0e6f1b14caedc72675d2535cf8ee9aa354fcc2 (patch) | |
tree | 8d48a0836451dc4c849310fca6a8b402f4d3c39f | |
parent | 7babc1034e9afbcfe5997e0d847faba938cfde7f (diff) | |
download | vdr-cb0e6f1b14caedc72675d2535cf8ee9aa354fcc2.tar.gz vdr-cb0e6f1b14caedc72675d2535cf8ee9aa354fcc2.tar.bz2 |
Fixed a problem with accessing the epg.data file before it is fully written
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | eit.c | 8 |
3 files changed, 7 insertions, 4 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index b80c8c30..8b9e8528 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -186,6 +186,7 @@ Norbert Schmidt <nschmidt-nrw@t-online.de> Thilo Wunderlich <tw@ubcom.net> for his help in keeping 'channels.conf' up to date + for reporting a problem with accessing the epg.data file before it is fully written Stephan Schreiber <stephan@sschreiber.de> for his support in keeping the Premiere World channels up to date in 'channels.conf.cable' @@ -1180,3 +1180,5 @@ Video Disk Recorder Revision History - Fixed resetting the "First day" timer parameter once the timer actually starts recording. - Fixed the still picture workaround in case the progress display is active. +- Fixed a problem with accessing the epg.data file before it is fully written + (thanks to Thilo Wunderlich for reporting this one). @@ -16,7 +16,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: eit.c 1.42 2002/04/01 12:58:20 kls Exp $ + * $Id: eit.c 1.43 2002/04/06 11:42:47 kls Exp $ ***************************************************************************/ #include "eit.h" @@ -1090,10 +1090,10 @@ void cSIProcessor::Action() if (epgDataFileName && now - lastDump > 600) { cMutexLock MutexLock(&schedulesMutex); - FILE *f = fopen(GetEpgDataFileName(), "w"); - if (f) { + cSafeFile f(GetEpgDataFileName()); + if (f.Open()) { schedules->Dump(f); - fclose(f); + f.Close(); } else LOG_ERROR; |